打开 nginx 的目录浏览
Posted 2 years, 6 months ago at 12:24 am. 0 comments
ad 468x60
需要打开 ngx_http_autoindex_module 模块。ubuntu 下
cd /etc/nginx/sites-available
sudo vim default
加入
location / {
…
autoindex on;
}
重启,刷新浏览器(firefox 用 ctrl+shift+r),看效果
sudo /etc/init.d/nginx restart
ad 468x60 #simpletag-ralated h4 {margin:5px 0 10px 0;} #simpletag-ralated li,#simpletag-ralated ul {margin:0;padding:0;} #simpletag-ralated li a {margin:0;}