nginx 子路径 网站图片或js/css 路径缺失 替换
location /test { rewrite ^/test/(.*)$ /$1 break; proxy_pass http://localhost:8080; sub_filter_types *; sub_filter '/Content/' '/test/Content/';#将Content加上前缀test sub_filter '/Assets/' '/test/Assets/';#将Assets加上前缀test sub_filter_once off; }
标签:Content,sub,路径,js,filter,nginx,test,Assets From: https://www.cnblogs.com/xiaoruilin/p/17079010.html