November 3, 2021 • Read: 1002 • 常山阅读设置


在使用nginx搭建SniperPhish时,会造成无法访问错误,如:404错误、The .htaccess file from web root is either a) missing, b)incorrectly configured or c)it's support does not enabled in your web server. SniperPhish requires web server configuration to ignore .php from URLs. You should configure .htaccess file to ignore .php extension.错误等。

这些错误都是因为SniperPhish官网提供的是Apache的伪静态文件,只需要在nginx中设置伪静态为rewrite ^/([^\.]+)$ /$1.php last;即可。

Archives QR Code Tip
QR Code for this page
Tipping QR Code