标签:
注:(nginx.exe)不能双击打开!
D:\soft\nginx-1.5.1\conf\nginx.conf
server {
listen 80; #监听端口
server_name manage.taotao.com; #请求访问的域名
#charset koi8-r;
#access_log logs/host.access.log main;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://127.0.0.1:8081; #反向代理到的Tomcat
proxy_connect_timeout 600; #连接超时时间
proxy_read_timeout 600; #读取超时时间
}
}
标签:
原文地址:http://www.cnblogs.com/cb0327/p/5350406.html