VPS侦探论坛

 找回密码
 注册
查看: 4980|回复: 2

论坛怎么伪静态啊?伪静态以后访问不了。

[复制链接]
发表于 2012-7-16 15:52:21 | 显示全部楼层 |阅读模式

我的是多站点,/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_pass  unix:/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.log  access;
}

把配置文件这样写也不行
include discuzx.conf;

到底是哪里出问题了啊
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-7-16 15:53:03 | 显示全部楼层


把include fcgi.conf;改成我的伪静态规则文件名 也不行
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-7-16 21:27:09 | 显示全部楼层

include /usr/local/nginx/conf/discuzx.conf; 肯定是放在root下面,不会的话,用/root/vhost.sh 按步骤选择就会给你加上
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-23 11:14 , Processed in 0.025634 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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