underscores_in_headers on;
location ~ ^/prod-api {
rewrite ^/prod-api/(.*)$ /$1 break;
proxy_pass http://*****.com;
}
location ^/file {
proxy_pass http://*****.com;
}
location ~ / {
try_files $uri $uri/ /index.html;
}
#if (!-e $request_filename) {
# rewrite ^/(.*) /index.html last;
# break;
#}
评论 (0)