先配置nginx
location ~ .*\.(php|php5)?$ { if ($request_uri ~ "one/test") { access_by_lua_file /opt/nginxrw/lua/limiturl.lua; } fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; }
if ($request_uri ~ "firstsale\/AjaxPanicNow") { rewrite_by_lua_file /opt/nginxrw/lua/limiturl.lua; }