全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1273|回复: 1

话说dedecms伪静态怎么设置

[复制链接]
发表于 2016-4-5 10:02:45 | 显示全部楼层 |阅读模式
这两天用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;
    }
 楼主| 发表于 2016-4-5 10:19:03 | 显示全部楼层
看了不知道多少遍貌似没发现问题,可是lnmp创建网站的时候不选择lnmp自带的伪静态就ok,选择了lnmp自带的伪静态首页就404
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-5-17 18:00 , Processed in 0.063007 second(s), 12 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表