Configuration
location ^~ /download/ {
alias /data/;
charset utf-8;
autoindex on;
autoindex_exact_size on;
autoindex_localtime on;
}
Permission Denied:
check user in the nginx.conf
check SELinux
#1. check if SELinux is running:
getenforce
#To disable SELinux until next reboot:
setenforce Permissive
nginx配置访问密码
https://blog.youkuaiyun.com/dream8062/article/details/78416234