更新于 2024-08-05
location /
{
try_files $uri $uri/index.html $uri.html @fcgi_passby;
}
location @fcgi_passby {
fastcgi_pass 127.0.0.1:1082;
fastcgi_pass_request_headers on;
include fastcgi.conf;
}
map '?$query_string' $qs {
'?' '';
default '?$query_string';
}
underscores_in_headers on;
proxy_pass_header Server;
#全部请求都反代到目标
location ~ ^/
{
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Real-Ip $remote_addr;
proxy_set_header Front-End-Https on;
proxy_set_header Host $http_host;
proxy_pass_header Server;
proxy_pass http://127.0.0.1:9445;
}