全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
楼主: winok
打印 上一主题 下一主题

[疑问] 还是解决不了伪静态的问题,无奈再求助

[复制链接]
11#
 楼主| 发表于 2010-6-8 12:04:04 | 只看该作者
重启了还是不行...
12#
发表于 2010-6-8 12:06:02 | 只看该作者
在玉米文件内加以下代码就可以拉:


include discuz.conf;
13#
 楼主| 发表于 2010-6-8 12:10:12 | 只看该作者
server
        {
                listen       80;
                server_name taiidan.com;
                index index.html index.htm index.php;
                root  /home/wwwroot/forum;
              include discuz.conf;

                location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

                location /status {
                        stub_status on;
                        access_log   off;
                }
14#
发表于 2010-6-8 12:11:25 | 只看该作者
  试试加完 include discuz.conf; 后

编辑 discuz.conf 里面的文件

/
换成forum/好像
15#
发表于 2010-6-8 12:11:27 | 只看该作者
你的论坛必须放在这个文件根目录

/home/wwwroot/forum
16#
发表于 2010-6-8 12:14:52 | 只看该作者
  1. location forum/ {
  2.             rewrite ^/archiver/((fid|tid)-[\w\-]+\.html)$ /archiver/index.php?$1 last;
  3.             rewrite ^/forum-([0-9]+)-([0-9]+)\.html$ /forumdisplay.php?fid=$1&page=$2 last;
  4.             rewrite ^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ /viewthread.php?tid=$1&extra=page%3D$3&page=$2 last;
  5.             rewrite ^/space-(username|uid)-(.+)\.html$ /space.php?$1=$2 last;
  6.             rewrite ^/tag-(.+)\.html$ /tag.php?name=$1 last;
  7.         }
复制代码
17#
 楼主| 发表于 2010-6-8 12:26:11 | 只看该作者
还是不行。郁闷啊........
18#
发表于 2010-6-8 12:28:01 | 只看该作者
加上forum啊
19#
 楼主| 发表于 2010-6-8 12:28:44 | 只看该作者
discuz.conf加上forum了,但nginx.conf加上forum就显示错误.....
20#
发表于 2010-6-8 13:08:11 | 只看该作者
原帖由 winok 于 2010-6-8 12:28 发表
discuz.conf加上forum了,但nginx.conf加上forum就显示错误.....

discuz.conf里面加上就行了,不要动nginx.conf文件
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-14 21:00 , Processed in 0.060589 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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