1)有可能是权限问题


?
1
shell> chmod -R 755 /usr/local/nginx/html
2)有可能是没有开启目录显示



?
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;

更多推荐