|
|
这两天用dedecms装个网站,用的是军哥的lnmp自带的dedecms伪静态规则,dedecms后台一键更新网站以后,其他网页都正常但比如xxx.com/index.html首页就是404错误应该是伪静态问题,求问大神具体是?
server
{
listen 80;
#listen [::]:80;
server_name www.xxxx.com xxx.com;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.xxx.com;
include dedecms.conf;
#error_page 404 /404.html;
location ~ [^/]\.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;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log off;
}
|
|