标签:ofo host switch write logs proxy cat 截取 cal
需求是http://IP/XXX/dist/index.html的URL中XXX为任意字符都转发到http://IP/dist/index.htmllocation ~ ^/(.)/dist/(.*)$ {
rewrite /(.)/dist/(.)$ /dist/$2 break;
proxy_pass http://$switch;
access_log /alidata1/logs/nginx/localhost_dist_access.log ZAWEB;
标签:ofo host switch write logs proxy cat 截取 cal
原文地址:http://blog.51cto.com/gavin0/2287793