全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1749|回复: 5

[nginx] 帮我看看我的nginx.conf

[复制链接]
发表于 2010-4-27 12:31:35 | 显示全部楼层 |阅读模式
我决定抛弃kloxo了,装了lnmp
现在开始往里搬家了,绑定了域名,结果访问带www的是403,带www的是Bad Request (Invalid Hostname)
然而用装lnmp绑定的域名访问这个目录是正常的@@
  1. server
  2.         {
  3.                 listen       80;
  4.                 server_name www.qingshunv.com qingshunv.com;
  5.                 index index.html index.htm index.php default.html default.htm default.php;
  6.                 root  /home/wwwroot/shunv;

  7.                 include none.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.                 access_log off;
  23.         }
复制代码
发表于 2010-4-27 12:43:20 | 显示全部楼层
没重启 nginx ?
 楼主| 发表于 2010-4-27 12:51:49 | 显示全部楼层
运行了
killall -HUP nginx
也没好使@@
发表于 2010-4-27 13:03:57 | 显示全部楼层
  1. include none.conf;
复制代码
引用的这个文件呢? 你检查了吗?
还有 重启之前先nginx -t看看
发表于 2010-4-27 13:11:39 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
 楼主| 发表于 2010-4-27 13:26:54 | 显示全部楼层
重启了也没好用
联系了客服,要了root密码,几秒钟就好了
不过没有透露是哪出问题了,已经麻烦人家了,我也没好意思多问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-30 00:25 , Processed in 0.060004 second(s), 8 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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