标签:add head reload div http 请求 访问 com span
server {
listen 80; #配置监听的端口
server_name zxy1994.com; #访问域名
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;
proxy_set_header Host $host; #让nginx反向代理时携带域名
location / {
proxy_pass http://127.0.0.1:9091; #将请求转发到tomcat
proxy_connect_timeout 600;
proxy_read_timeout 600;
}
}
nginx -s reload #让nginx重新启动,修改完nginx的配置文件后要重新启动
标签:add head reload div http 请求 访问 com span
原文地址:http://www.cnblogs.com/zxy0216/p/7257476.html