打开 nginx 的目录浏览
Posted 10 months, 1 week 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
Popularity: 32% [?]
Tags: nginx
ad 468x60
Related posts
No Replies
Feel free to leave a reply using the form below!