lnmp环境安装typecho后台404
多半是pathinfo的问题,按下面配置可以禁用。
修改/usr/local/nginx/conf/vhost
对应域名配置文件,注释掉try_files $uri =404; 并将include pathinfo.conf;注释去掉
include typecho.conf;
\#error_page 404 /404.html; location ~ 1.php(/|$) {\# comment try_files $uri =404; to enable pathinfo \# try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; include pathinfo.conf; }
- / ↩