location /search/ {
if ($request_uri ~ "/search/([^?]+)") {
set $q $1;
rewrite . /search?q=$q break;
}
proxy_pass http://www.new.com;
}
转载于:https://my.oschina.net/u/923974/blog/538140
location /search/ {
if ($request_uri ~ "/search/([^?]+)") {
set $q $1;
rewrite . /search?q=$q break;
}
proxy_pass http://www.new.com;
}
转载于:https://my.oschina.net/u/923974/blog/538140