+ -
当前位置:首页 → 问答吧 → 急寻 RH 5+nginx 出现403解决方法

急寻 RH 5+nginx 出现403解决方法

时间:2011-05-12

来源:互联网

1、iptables 已经stop
2、selinux 已经disable
3、web文件夹 已经是 drwxdrwxdrwx
drwxrwxrwx 2 root root 4096 05-12 13:30 web

4、nginx进程信息
[root@localhost sbin]# ps aux|grep nginx
root 3395 0.0 0.0 13072 488 ? Ss 13:34 0:00 nginx: master process ./nginx
nobody 3396 0.0 0.0 13436 1276 ? S 13:34 0:00 nginx: worker process

5、nginx.conf
 location / {
  root /web;
  index index.html index.htm;
  }
6、web文件夹下只有一个文件index.html
-rwxrwxrwx 1 nobody nobody 12 05-12 13:30 index.html


但是始终访问都是这样

403 Forbidden

nginx/0.6.31

作者: zxl0110   发布时间: 2011-05-12

访问/index.html试试,
或者

 location / {
  root /web;
  index index.html index.htm;
  autoindex on;
  }

作者: icy_csdn   发布时间: 2011-05-12

谢楼上,效果还是一样!

作者: zxl0110   发布时间: 2011-05-12