
Nginx怎么打开目录浏览功能
展开全部
在location中使用autoindex指令即可开启
Syntax:autoindex on | off;
Default:autoindex off;
location / {
autoindex on;
}
如果在当前目录下找不到index指定的默认文档,则会将目录所有文件列出来
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
在location中使用autoindex指令即可开启
Syntax:autoindex on | off;
Default:autoindex off;
location / {
autoindex on;
}
如果在当前目录下找不到index指定的默认文档,则会将目录所有文件列出来
类别
我们会通过消息、邮箱等方式尽快将举报结果通知您。
说明
0/200