Nginx turn on directory browsing
yum install httpd-Tools - the y- cd / usr / local / openrestry / nginx / conf / htpasswd -c passwd admin_user #admin_user is to look browse the directory of the user ID
server { listen 88; server_name _; root html; client_body_buffer_size 2m; client_header_buffer_size 2m; location / { #add_header Content-Disposition 'attachment'; #add_header Content-Type "application/octet-stream"; auth_basic 'auth'; auth_basic_user_file /usr/local/openresty/nginx/conf/passwd; alias /data/; autoindex on; autoindex_exact_size off; autoindex_localtime on; charset utf-8; } }