nginx重写链接

location ~ /send.redir {
            if ( $query_string ~ “url=(?<path>.+)” ) {
rewrite ^.* http:/xxx.xxx.com$path?;
}
}
原文地址:https://www.cnblogs.com/chaoe/p/7606687.html