nginx打开目录游览功能
#开启索引功能 location / { autoindex on; autoindex_exact_size off; autoindex_localtime on; }
#别名目录
location /down/ { alias /home/wwwroot/lnmp/test/; autoindex on; }
#开启索引功能 location / { autoindex on; autoindex_exact_size off; autoindex_localtime on; }
#别名目录
location /down/ { alias /home/wwwroot/lnmp/test/; autoindex on; }