老是记不住,干脆放在这里记录下来。
server { listen 81; server_name localhost; location = /favicon.ico { log_not_found off; log_subrequest off; } location ^~ /log { alias /home/dist; autoindex on; autoindex_exact_size off; autoindex_localtime on; } } 参考: http://nginxlibrary.com/enable-directory-listing/ (责任编辑:IT) |