+ -
当前位置:首页 → 问答吧 → 求助,Discuz7.2 启动 URL静态化 后出现 404 Not Found

求助,Discuz7.2 启动 URL静态化 后出现 404 Not Found

时间:2010-10-21

来源:互联网

先是按照该贴搭好了环境:
ubuntu server 10.04+nginx+mysql+php+eaccelerator[2010/10/06]
http://forum.ubuntu.org.cn/viewtopic.php?f=54&t=241301

在主站点下建了 /bbs 目录下存放 Discuz 7.2,该目录下的权限全开(a+rwx)。
进Discuz后台启动 URL 静态化:
下载 (27.66 KB)
2010-10-21 13:08


出现 404 Not Found 的提示:
下载 (42.79 KB)
2010-10-21 13:08


找了一些贴跟着配了一下,死活不成。贴:
Ubuntu Linux nginx 虚拟主机配置 和伪静态Rewrite 配置笔记
http://bbs.forerx.cn/thread-6055-1-1.html
lnmp中nginx静态化的配置
http://www.5169.info/software/ln ... f-nginx-static.html
Nginx下Discuz 7.2伪静态规则设置
http://www.ha97.com/836.html


请大家指点一下,谢谢。

作者: 061107   发布时间: 2010-10-21

查看一下日志吧!access_log,当访问文件的时候进行的何处理!

作者: todayhero   发布时间: 2010-10-21

本帖最后由 061107 于 2010-10-21 15:34 编辑

192.168.1.101 - - [21/Oct/2010:15:33:13 +0800] "GET /bbs/admincp.php?action=tools&operation=updatecache&step=3&type=data_tpl&sid=HZ31wT HTTP/1.1" 200 1527 "http://192.168.1.102/bbs/admincp.php?action=tools&operation=updatecache&step=2" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
192.168.1.101 - - [21/Oct/2010:15:33:16 +0800] "GET /bbs/forumdisplay.php?fid=5 HTTP/1.1" 200 4011 "http://192.168.1.102/bbs/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
192.168.1.101 - - [21/Oct/2010:15:33:17 +0800] "GET /bbs/pm.php?checknewpm=0.6819722157088086&inajax=1&ajaxtarget=myprompt_check HTTP/1.1" 200 91 "http://192.168.1.102/bbs/forumdisplay.php?fid=5" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
192.168.1.101 - - [21/Oct/2010:15:33:20 +0800] "GET /bbs/ HTTP/1.1" 200 3906 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
192.168.1.101 - - [21/Oct/2010:15:33:22 +0800] "GET /bbs/forum-5-1.html HTTP/1.1" 404 529 "http://192.168.1.102/bbs/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"
192.168.1.101 - - [21/Oct/2010:15:33:24 +0800] "GET /bbs/forum-5-1.html HTTP/1.1" 404 529 "http://192.168.1.102/bbs/" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)"


最上面的是进后台的。
最下面的是设置URL静态化后访问留下的。

作者: 061107   发布时间: 2010-10-21