用 Nginx 代理 ISSO,一直都好好的,今天把 Nginx 升级带 1.12 ,然后就不行了。。
搞了很久都没找到原因。
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root /var/www/blog;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
}
location /isso/ {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Script-Name /isso/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_pass http://localhost:8081/;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
1
mcoo1997 2018-03-31 20:57:51 +08:00 via Android
降级
|