location ~ \.(woff|woff2|ttf|dds|map|js|css|jpg|png|gif|lang|ico|mp4|json) {
if ($request_uri ~* "^.*a\.js$ ") {
add_header Cache-Control no-store;
}
root /www-data/example1;
try_files $uri =404;
}
location ^~ /a {
proxy_pass http://localhost:8888/;
proxy_pass http://localhost:8888;
proxy_pass http://localhost:8888/static/;
proxy_pass http://localhost:8888/static;
proxy_http_version 1.1;
}
当访问 http://example.com/a/b/c 时,会对应请求如下url