Nginx以xxx开头的转发

location / {
     root   html;
     index  index.html index.htm;
     if ( $request_uri ~ "^/xxx")  {
         proxy_pass   http://www.baidu.com;
     }
}
原文地址:https://www.cnblogs.com/shenyixin/p/14680415.html