discuz无法生成静态页面!
安装lnmp0.4-full ,使用./vhost.sh增加虚拟主机,选择Rewrite规则配置文件时输入:discuz,但是,论坛运行后无法通过静态化页面访问。请教,还需要设置什么地方? 论坛的目录为: /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_passunix:/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_formatwww.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.logwww.ggmm.net;
}include discuz.conf;//调用/usr/local/nginx/conf/discuz.conf的默认内容
回复 2# 的帖子
bbs的二级目录需要修改discuz.conf 伪静态规则将location / 改为location /bbs/
页:
[1]