location ~ ^/(.)/dist/(.*)$ {
rewrite /(.)/dist/(.)$ /dist/$2 break;
proxy_pass http://$switch;
access_log /alidata1/logs/nginx/localhost_dist_access.log ZAWEB;
nginx配置URL截取配置
原文地址:http://blog.51cto.com/gavin0/2287793
location ~ ^/(.)/dist/(.*)$ {
rewrite /(.)/dist/(.)$ /dist/$2 break;
proxy_pass http://$switch;
access_log /alidata1/logs/nginx/localhost_dist_access.log ZAWEB;
nginx配置URL截取配置
原文地址:http://blog.51cto.com/gavin0/2287793