location / { root html; index index.html index.htm; if ( $request_uri ~ "^\/xxx") { proxy_pass http://www.baidu.com; } }
Nginx以xxx开头的转发
原文:https://www.cnblogs.com/shenyixin/p/14680415.html