File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 18
18
location / {
19
19
proxy_pass http://live_node; # 注意:proxy_pass后面的路径不带uri时,其会将location的uri传递给后端主机
20
20
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;
21
30
}
22
31
}
23
32
40
49
}
41
50
}
42
51
```
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)
43
58
> 参数:`keepalive connections;`
44
59
>>补充:`由于短连接消耗前端代理服务器的资源现象严重,因此会将一部分连接定义为长连接以节省资源`
45
60
>>FUN:`#为每个worker进程保留的空闲的长连接数量`
Original file line number Diff line number Diff line change 287
287
+ [Nginx日志服务](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-2-Log.md)
288
288
+ 负载均衡
289
289
+ HTTP负载均衡
290
+ - [x] [简单的负载平衡](http://nginx.org/en/docs/http/ngx_http_core_module.html?&_ga=1.179030369.49817296.1480411319#http)
290
291
- [x] [简单的负载平衡](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-7-Proxy-1.md)
291
292
- [x] [负载均衡五个配置实例](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-7-Proxy.md)
292
293
- [x] [Openresty-Lua动态修改upstream后端服务](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/openresty-nginx-lua-Proxy.md)
293
294
+ TCP负载均衡
295
+ - [x] [Module ngx_stream_core_module](http://nginx.org/en/docs/stream/ngx_stream_core_module.html#stream)
294
296
- [x] [负载均衡](https://github.com/Tinywan/Lua-Nginx-Redis/blob/master/Nginx/Nginx-Web/Nginx-8-tcp-Proxy.md)
295
297
#### <a name="Nginx_Web8_knowledge"/> 第八章 缓存机制
296
298
+ 测试一
You can’t perform that action at this time.
0 commit comments