废话不多述,直接上代码(nginx)
if ($uri ~ "/login"){ set $auth $arg_auth; } if ($auth != "abc123"){ rewrite ^/login https://www.jssolo.com redirect; }
其他说明详见https://www.jssolo.com/note/669