应该是宝塔站点配置文件如下,宝塔站点自动生成的- server{ listen 80; server_name tyuiop.cc *.tyuiop.cc; index index.php index.html index.htm default.php default.htm default.html; root /www/wwwroot/tyuiop.cc; #SSL-START SSL相关配置,请勿删除或修改下一行带注释的404规则 #error_page 404/404.html; #SSL-END #ERROR-PAGE-START 错误页配置,可以注释、删除或修改 #error_page 404 /404.html; #error_page 502 /502.html; #ERROR-PAGE-END #PHP-INFO-START PHP引用配置,可以注释或修改 location ~* ^/avatar|attachment/*.(php)$ { deny all; }
复制代码 |