nginx内网代理服务
server {
listen 8010;
server_name localhost;
location / {
root html/cdr;
index index.html index.htm;
proxy_set_header X-real-ip $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /abc
{
proxy_pass http://ip:xxxx/abc;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
版权声明:本文为QWQ19980801原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。