Skip to content

Commit 49e0dc6

Browse files
committed
Module ngx_stream_core_module
1 parent 35d61fb commit 49e0dc6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

Nginx/Nginx-Web/Nginx-7-Proxy.md

+15
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@
1818
location / {
1919
proxy_pass http://live_node; # 注意:proxy_pass后面的路径不带uri时,其会将location的uri传递给后端主机
2020
proxy_set_header Host $host; # 保留客户端的真实信息
21+
proxy_set_header Host $host:$server_port;
22+
proxy_set_header X-Real-IP $remote_addr;
23+
proxy_set_header X-Real-PORT $remote_port;
24+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
25+
26+
proxy_redirect off;
27+
proxy_buffer_size 128k;
28+
proxy_buffers 32 32k;
29+
proxy_busy_buffers_size 128k;
2130
}
2231
}
2332
@@ -40,6 +49,12 @@
4049
}
4150
}
4251
```
52+
+ Nginx-proxy 详解文章链接
53+
+ 查看错误日志
54+
`upstream sent too big header while reading response header from upstream`
55+
+ [Nginx-proxy_buffer_size and fastcgi_buffer](http://blog.csdn.net/u010391029/article/details/50850210)
56+
+ [http://wiki.nginx.org/NginxHttpProxyModule](http://wiki.nginx.org/NginxHttpProxyModule)
57+
+ [http://blog.sina.com.cn/s/blog_5dc960cd0100i4mt.html](http://blog.sina.com.cn/s/blog_5dc960cd0100i4mt.html)
4358
> 参数:`keepalive connections;`
4459
>>补充:`由于短连接消耗前端代理服务器的资源现象严重,因此会将一部分连接定义为长连接以节省资源`
4560
>>FUN:`#为每个worker进程保留的空闲的长连接数量`

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,12 @@
287287
+ [Nginx日志服务](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-2-Log.md)
288288
+ 负载均衡
289289
+ HTTP负载均衡
290+
- [x] [简单的负载平衡](http://nginx.org/en/docs/http/ngx_http_core_module.html?&_ga=1.179030369.49817296.1480411319#http)
290291
- [x] [简单的负载平衡](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-7-Proxy-1.md)
291292
- [x] [负载均衡五个配置实例](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-7-Proxy.md)
292293
- [x] [Openresty-Lua动态修改upstream后端服务](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/openresty-nginx-lua-Proxy.md)
293294
+ TCP负载均衡
295+
- [x] [Module ngx_stream_core_module](http://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream)
294296
- [x] [负载均衡](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-8-tcp-Proxy.md)
295297
#### <a name="Nginx_Web8_knowledge"/> 第八章 缓存机制
296298
+ 测试一

0 commit comments

Comments
 (0)