Nginx怎么打开目录浏览功能

2026年09月28日 08:58
有1个网友回答
网友(1):

location / { root html; index index.html index.php; autoindex on; #开启目录浏览功能 autoindex_exact_size off; #显示目录的详细大小 autoindex_localtime on; #显示目录的详细时间 } 这是一段代码,你先要装ngx_http_autoindex_module模块。 nginx -V 查看你安装了那些模块