码迷,mamicode.com
首页 >  
搜索关键字:upstream    ( 928个结果
nginx代理
vim/usr/local/nginx/conf/vhosts/proxy.confserver{ listen80; server_namewww.baidu.com; localtion/{ proxy_pass http://ip/;proxy_set_headerHost$host; proxy_set_headerX-Real-IP$remote_addr;}}digwww.baidu.com查看百度有多少ip如果后端的机器有多台,还可以用upstream..
分类:其他好文   时间:2016-01-04 07:43:44    阅读次数:155
Nginx负载均衡监测节点状态
Nginx负载均衡监测节点状态v插件(ngx_http_upstream_check_module)upstream_check_module介绍:该模块可以为Tengine提供主动式后端服务器健康检查的功能。该模块在Tengine-1.4.0版本以前没有默认开启,它可以在配置编译选项的时候开启:./configure--with-http_upstream_chec..
分类:其他好文   时间:2015-12-31 07:17:26    阅读次数:3396
为 Docker Registry 增加 Nginx 前端
其实Docker Registry 就是一个API backend,所以加一个Nginx前端有大大的好处,比如docker push 时增加用户名密码验证。怎么加?请参考以下nginx配置upstream docker-registry { server 127.0.0.1:5000;}serve....
分类:其他好文   时间:2015-12-30 19:30:20    阅读次数:151
nodejs 通过nginx后出现响应慢的解决方法
在windows下用nodejs搭建的服务器,通过nginx做代理后,响应变慢,这里提供了解决方案,也是 nginx upstream timed out 10060 错误的解决方案。
分类:Web程序   时间:2015-12-25 19:18:50    阅读次数:198
Nginx配置upstream实现负载均衡
如果Nginx没有仅仅只能代理一台服务器的话,那它也不可能像今天这么火,Nginx可以配置代理多台服务器,当一台服务器宕机之后,仍能保持系统可用。具体配置过程如下:1. 在http节点下,添加upstream节点。upstream linuxidc {       server 10.0.6.108:7080;       server 10.0.0.85:8980; }  2.  将server...
分类:其他好文   时间:2015-12-24 12:02:36    阅读次数:147
[Nginx][HttpUpstreamModule]翻译负载均衡
英文原文地址:http://nginx.org/en/docs/http/ngx_http_upstream_module.html大纲:示例指令嵌入变量ngx_http_upstream_module模块用来定义一个可以通过proxy_pass, fastcgi_pass和memcached_pa...
分类:Web程序   时间:2015-12-18 21:22:06    阅读次数:244
自动化安装Nginx-1.6.2
#!/bin/bash #ADDModule #1:nginx-upstream-fair # Install_dir="/usr/local/nginx" Download_dir="/home/tools" Nginx_Major_Version="1.6" Nginx_Minor_Version="2" Nginx_Configure="./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_..
分类:其他好文   时间:2015-12-17 14:26:17    阅读次数:182
nginx 502错误 upstream sent too big header while reading response header from upstream
原本的设置是proxy_buffer_size 4k;proxy_buffers 4 32k;proxy_busy_buffers_size 64k;在这种配置下,使用fiddler进行抓包分析,发现只要请求的header的尺寸大于4378字节的时候就报502,当header在4377及以下的时候就...
分类:其他好文   时间:2015-12-10 23:27:09    阅读次数:148
nginx中location中关于proxy_pass和rewrite的应用
1,问题描述 upstream datacollectbackend{ #ip_hash; server 10.234.1.211:6100 max_fails=5 fail_timeout=30s; server 10.234.1.26:7100 max_fails=5 fail_timeout=30s; } location ~* ^/...
分类:其他好文   时间:2015-11-26 15:24:42    阅读次数:199
Keep your fork synced
1 clone 自己的git仓 git clone https://github.com/YOUR-USERNAME/Spoon-Knife2 查看自己的本地仓对应的远程仓git remote -v3 增加新的远程仓 git remote add upstream https://github.co...
分类:其他好文   时间:2015-11-23 21:51:59    阅读次数:131
928条   上一页 1 ... 74 75 76 77 78 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!