TypechoJoeTheme

Yuuuuuu

搜索到 1 篇与 的结果
2017-03-01

lnmp部署typecho出现404解决

lnmp部署typecho出现404解决
安装完typecho只有首页能访问,访问其它页页面报404错误。问题在于typecho需要pathinfo功能,nginx需要配置才能支持此功能。所以如果想要启用pathinfo,需要注释掉“try_files $uri =404;”这行代码。所以,LNMP1.1安装typecho后404问题解决办法就是:在/usr/local/nginx/conf/vhost/下找到你的typecho站点配置文件(文件名类似xxxxx.conf),然后:确保有“include typecho.conf;”这么一行,并且没有被“#”号注释;用“#”号注释“try_files $uri =404;”这一行;取消“#include pathinfo.conf;”这一行前面的的“#”号;修改正确的话,typecho站点conf配置文件看起来如下:server { listen 80; server_name localhost; index index.html index.htm index.php; root /home/wwwroot/func...
2017年03月01日
1,941 阅读
0 评论