Ryan Wang 👍
nginx 配置如下,大佬麻烦看看有啥问题吗。
server {
listen 8090;
server_name example.com www.abigdream.cn abigdream.cn ;
client_max_body_size 1024m;
location / {
proxy_set_header HOST $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
dd_header Content-Security-Policy upgrade-insecure-requests;
proxy_pass http://127.0.0.1:8090/;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
proxy_pass http://jfinaldemo;
}
location ~ .*\.(js|css)?$
{
proxy_pass http://jfinaldemo;
}
}
我把 proxy_pass http://127.0.0.1:8090/; 设置成 proxy_pass http://139.196.90.250:8090/; 也没有效果。