Typecho安装后页面及后台404错误的解决方法

404.jpg

环境:军哥的lnmp1.4

现象:成功安装typecho后,打开页面或后台显示404错误

原因:地址栏有index.php,伪静态没有正常工作,所以无法正确跳转

只需要将/usr/local/nginx/conf/vhost/youname.com.conf文件的大概15行

include enable-php.conf;

改为:

include enable-php-pathinfo.conf;

然后保存lnmp reload重启即可。

猜您喜欢

发表评论

icon_mrgreen.gificon_neutral.gificon_twisted.gificon_arrow.gificon_eek.gificon_smile.gificon_confused.gificon_cool.gificon_evil.gificon_biggrin.gificon_idea.gificon_redface.gificon_razz.gificon_rolleyes.gificon_wink.gificon_cry.gificon_surprised.gificon_lol.gificon_mad.gificon_sad.gificon_exclaim.gificon_question.gif