首先找到Nginx的配置文件,这里以我的配置文件路径为例,以任意一种编辑器编辑该文件:

vim /usr/local/nginx/conf/nginx.conf

找到server,注释原来的enable-php.conf,添加新的引用

include enable-php-pathinfo.conf;
include rewrite/typecho2.conf;

保存关闭。
重启lnmp服务,
正常.

Last modification:December 15th, 2019 at 03:42 pm
If you think my article is useful to you, please feel free to appreciate