给运维同事写的域名转发代理
location = / {
proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
rewrite “^/(.*)$” $scheme://$host:$server_port/wt/capital/web/index$1 break;
}
location /wt/ {proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass http://xxx.hotjob.cn/wt/;
}
近期评论