访问localhost 提示404,不是应该显示index.html的内容吗?
为什么会这样
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
#gzip on; server {
listen 80;
server_name location;
location = / {
root dist;
index index.html;
}
}
}
nginx目录如下
severname应该是localhost