nginx转发urlencode编码

location /search/ {
    if ($request_uri ~ "/search/([^?]+)") {
        set $q $1;
        rewrite . /search?q=$q break;
    }

    proxy_pass http://www.new.com;
}


你可能感兴趣的:(nginx转发urlencode编码)