缺少index.html或index.php配置,检查是否配置了index
server {
listen 80;
server_name localhost;
index index.php index.html;
root /usr/share/nginx/html;
缺少index.html或index.php配置,检查是否配置了index
server {
listen 80;
server_name localhost;
index index.php index.html;
root /usr/share/nginx/html;