求助,部署typecho出现404
我用的是LNMP1.3版本,部署typecho之后只能访问首页,登录或者点文章都是404.下面是我的站点配置,帮忙看看问题出在哪里,谢谢!https://ta0.wang
server
{
listen 80;
server_name www.ta0.wang ta0.wang;
rewrite ^/(.*)$ https://$host/$1 redirect;
}
server
{
listen 443;
#listen [::]:80;
server_name www.ta0.wang ta0.wang;
ssl on;
ssl_certificate /etc/SSL/1_ta0.wang_bundle.crt;
ssl_certificate_key /etc/SSL/2_ta0.wang.key;
index index.html index.htm index.php default.html default.htm default.php;
root/home/wwwroot/www.ta0.wang;
include enable-php.conf;
include typecho.conf;
#error_page 404 /404.html;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
# try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
} 1.3跟1.2不一样吗,我按照论坛里搜出来的帖子做也不行啊 回到1.2了,在板瓦工测试可以用。
回复 2# 的帖子
include enable-php.conf;include typecho.conf;
#error_page 404 /404.html;
location ~ [^/]\.php(/|$)
{
# comment try_files $uri =404; to enable pathinfo
# try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
include pathinfo.conf;
}
你这里都重复了,1.3上启用php部分直接是include enable-php.conf
启用php和pathinfo是include enable-php-pathinfo.conf 谢军哥指点!!!!!!
页:
[1]