1)有可能是权限问题
1
|
shell>
chmod
-R 755
/usr/local/nginx/html
|
1
2
3
4
5
|
location / {
root html;
autoindex on;
index index.php index.html index.htm;
}
|
3)目录没有定义需要的类型
1
|
index index.php index.html index.htm;
|