我正在尝试使用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"
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://
http://PHP
我的文件夹有权限755.
最佳答案
原文链接:https://www.f2er.com/nginx/435224.html