全球主机交流论坛
标题:
话说dedecms伪静态怎么设置
[打印本页]
作者:
wys1997
时间:
2016-4-5 10:02
标题:
话说dedecms伪静态怎么设置
这两天用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;
}
作者:
wys1997
时间:
2016-4-5 10:19
看了不知道多少遍貌似没发现问题,可是lnmp创建网站的时候不选择lnmp自带的伪静态就ok,选择了lnmp自带的伪静态首页就404
欢迎光临 全球主机交流论坛 (https://sunk.eu.org/)
Powered by Discuz! X3.4