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
文件内容
server
{
listen 80;
server_name www.ggmm.net;
index index.html index.htm index.php default.html default.htm default.php;
root /home/wwwroot/www.ggmm.net;
include discuz.conf;
location ~ .*\.(php|php5)?$
{
fastcgi_pass unix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
log_format www.ggmm.net '$remote_addr - $remote_user [$time_local] $request '
'$status $body_bytes_sent $http_referer '
'$http_user_agent $http_x_forwarded_for';
access_log /home/wwwroot/logs/www.ggmm.net.log www.ggmm.net;
}
复制代码
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