server {
listen 80;
server_name www.test.com;
root /html/test;
error_log /html/test/error.log;
access_log /html/test/access.log;
location /test {
echo "test";
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
错误日志
2015/05/16 10:32:08 [error] 3801#0: *1 directory index of "/html/test/" is forbidden, client: 127.0.0.1, server: www.test.com, request: "GET / HTTP/1.1", host: "www.test.com"
根目录下权限是777,怎么解决
第1个回答 2021-04-05
第2个回答 2015-05-18
这个肯定是权限问题啊, 可能是配置的不正确, 也可能是权限不正确啊 , 看看wo 的网名行吗?一定可以解决的啊 !!!本回答被网友采纳