403禁止使用nginx

我正在尝试使用Nginx创建一个localhost服务器.我的页面上有403 Forbidden.这是我的Nginx错误日志:

2013/03/30 20:39:18 [error] 12161#0: *1 directory index of "/home/mike/Projects/606club/" is forbidden,client: 127.0.0.1,server: localhost,request: "GET /606club/ HTTP/1.1",host: "localhost"

我的Nginx.conf文件

server {
    listen       80;
    server_name  localhost;

    #for .html sites
    location / {
        root   /home/mike/Projects;
        index  index.html index.htm;
    }

    #for .PHP sites
    location ~ \.PHP${
            root /home/mike/Projects;
            fastcgi_pass 127.0.0.1:9000;
            fastcgi_index index.PHP;
            include /opt/Nginx/conf/fastcgi_params;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

我在以下网址的网站给出了以下内容

作品

http://

403禁止错误

http://PHP

我的文件夹有权限755.

最佳答案
如果您希望/index.PHP为/提供请求,则需要将index.PHP添加到index指令中.

相关文章

Nginx (engine x) 是一个高性能的HTTP和反向代理服务,也是一...
本地项目配置 1 复制 luffy/settings/dev.py为prop.py 修改l...
nginx不仅可以隐藏版本信息,还支持自定义web服务器信息 先看...
一 、此次漏洞分析 1 nginx HTTP/2漏洞 [nginx-announce] ng...
###进入nginx 目录cd /usr/local/nginx###递归显示 2 级目录...
在cmd命令窗口输入下面命令进行查看 tasklist /fi "ima...