VPS侦探论坛

标题: discuz无法生成静态页面! [打印本页]

作者: 54wz    时间: 2010-4-15 01:11
标题: discuz无法生成静态页面!
安装lnmp0.4-full ,使用./vhost.sh增加虚拟主机,选择Rewrite规则配置文件时输入:discuz,但是,论坛运行后无法通过静态化页面访问。请教,还需要设置什么地方?
作者: 54wz    时间: 2010-4-15 01:17
论坛的目录为: /home/wwwroot/www.ggmm.net/ ,客户端访问首页后动跳转到/home/wwwroot/www.ggmm.net/bbs/


这是我/usr/local/nginx/conf/vhost/ www.ggmm.conf文件内容
  1. server
  2.         {
  3.                 listen       80;
  4.                 server_name www.ggmm.net;
  5.                 index index.html index.htm index.php default.html default.htm default.php;
  6.                 root  /home/wwwroot/www.ggmm.net;

  7.                 include discuz.conf;
  8.                 location ~ .*\.(php|php5)?$
  9.                         {
  10.                                 fastcgi_pass  unix:/tmp/php-cgi.sock;
  11.                                 fastcgi_index index.php;
  12.                                 include fcgi.conf;
  13.                         }

  14.                 location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  15.                         {
  16.                                 expires      30d;
  17.                         }

  18.                 location ~ .*\.(js|css)?$
  19.                         {
  20.                                 expires      12h;
  21.                         }

  22.                 log_format  www.ggmm.net  '$remote_addr - $remote_user [$time_local] $request '
  23.              '$status $body_bytes_sent $http_referer '
  24.              '$http_user_agent $http_x_forwarded_for';
  25.                 access_log  /home/wwwroot/logs/www.ggmm.net.log  www.ggmm.net;
  26.         }
复制代码
  1. include discuz.conf;  //调用/usr/local/nginx/conf/discuz.conf的默认内容
复制代码

作者: licess    时间: 2010-4-15 11:09
标题: 回复 2# 的帖子
bbs的二级目录需要修改discuz.conf 伪静态规则将location / 改为location /bbs/




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4