nginx 没有访问权限
1登录用户名 和 nginx 一致
user root root;
2 autoindex on;
这个默认是off的 意思是禁止访问目录 需要开启
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
autoindex on;
.........
}