nginx的列举文件列表功能无法开启?

server {
        listen 8000;
        root html;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;

}

已经使用autoindex on;开启列表功能,但是访问localhost:8000还是显示index.html的内容

阅读 981
1 个回答

有index.html就会显示index.html,你可以把index配置关掉

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题