WDlinux官方论坛's Archiver

端木寒 发表于 2013-9-9 17:09

安装一键安装包出现的问题

[i=s] 本帖最后由 端木寒 于 2013-9-9 17:12 编辑 [/i]

安装完成一键包后,我装的是Discuz程序,发现如果我在后台更换模版之后,模版还是原来默认的模版,只有重启启动服务之后才能显出更换后的模版,还有我安装的是nginx+apache,应该怎么设置URL 静态化,我设置的怎么不管用呢?还有就是重启wdapache服务,会显示‘已取消到该网页的导航您可以尝试以下操作 --刷新该网页……

frisa 发表于 2013-9-9 19:05

1.更新不及时是由eaccelerator造成的,可以在 DZ的设置文件里先关闭eaccelerator,之后再开启( 不建议永久停用EA,EA对PHP性能的提升还是非常大的)
2.在DZ后台的全局-SEO设置里有个“查看当前的 Rewrite 规则”,在wdcp后台添加规则并将规则文件应用到站点
3.最好一次性重启整个VPS并重开浏览器

端木寒 发表于 2013-9-11 14:09

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=28195&ptid=7164]2#[/url] [i]frisa[/i] [/b]
eaccelerator怎么关闭呀?
我用的是阿里云云服务器,nginx+apache环境,Rewrite 规则应该写那个?

frisa 发表于 2013-9-11 16:53

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=28261&ptid=7164]3#[/url] [i]端木寒[/i] [/b]


    config_global.php
$_config['memory']['eaccelerator'] = 0;
x2.5的规则

rewrite ^([^\.]*)/topic-(.+)\.html$ $1/portal.php?mod=topic&topic=$2 last;
rewrite ^([^\.]*)/article-([0-9]+)-([0-9]+)\.html$ $1/portal.php?mod=view&aid=$2&page=$3 last;
rewrite ^([^\.]*)/forum-(\w+)-([0-9]+)\.html$ $1/forum.php?mod=forumdisplay&fid=$2&page=$3 last;
rewrite ^([^\.]*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=viewthread&tid=$2&extra=page%3D$4&page=$3 last;
rewrite ^([^\.]*)/group-([0-9]+)-([0-9]+)\.html$ $1/forum.php?mod=group&fid=$2&page=$3 last;
rewrite ^([^\.]*)/space-(username|uid)-(.+)\.html$ $1/home.php?mod=space&$2=$3 last;
rewrite ^([^\.]*)/blog-([0-9]+)-([0-9]+)\.html$ $1/home.php?mod=space&uid=$2&do=blog&id=$3 last;
rewrite ^([^\.]*)/(fid|tid)-([0-9]+)\.html$ $1/index.php?action=$2&value=$3 last;
rewrite ^([^\.]*)/([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ $1/plugin.php?id=$2:$3 last;
if (!-e $request_filename) {
        return 404;
}

端木寒 发表于 2013-9-12 16:04

[b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=28270&ptid=7164]4#[/url] [i]frisa[/i] [/b]


    多谢了!

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.