尝试遵循重写规则,但是,它不起作用。
重写^/test/index.php?/Server/Search/(.*)$ http://example.com/?ip=$1重定向;
这是出于内部目的,因为另一个api将检查ADDRESS上的IP地址。
发布于 2014-12-10 21:23:18
location = /test/index.php {
if ($args ~ "^/Server/Search/(.+)") {
set $sip $1;
rewrite ^(.*)$ /?ip=$sip? redirect;
}
}
https://stackoverflow.com/questions/27396858
复制相似问题