论坛怎么伪静态啊?伪静态以后访问不了。
我的是多站点,/usr/local/nginx/conf伪静态在这目录里面/usr/local/nginx/conf/vhosts站点配置文件在这里面代码如下:
server
{
listen 80;
server_name bbs.zyw521.com;
index index.html index.htm index.php;
root/home/wwwroot/bbs;
location ~ .*\.(php|php5)?$
{
try_files $uri =404;
fastcgi_passunix:/tmp/php-cgi.sock;
fastcgi_index index.php;
include fcgi.conf;
include /usr/local/nginx/conf/discuzx.conf;
}
location /status {
stub_status on;
access_log off;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
}
location ~ .*\.(js|css)?$
{
expires 12h;
}
access_log/home/wwwlogs/access.logaccess;
}
把配置文件这样写也不行
include discuzx.conf;
到底是哪里出问题了啊 把include fcgi.conf;改成我的伪静态规则文件名 也不行 include /usr/local/nginx/conf/discuzx.conf; 肯定是放在root下面,不会的话,用/root/vhost.sh 按步骤选择就会给你加上
页:
[1]