Nginx浏览目录配置
在项目中有一个功能需要在浏览器页面中浏览服务器的目录。服务器使用Nginx,而Nginx提供了相应的ngx_http_autoindex_module 模块,该模块提供了我们想要的功能。Nginx ngx_http_autoindex_module 模块该模块有以下几个命令:命令默认值值域作用域EGautoindexoffon:开启目录浏览;off:关闭目录浏览http, server, locationautoindex on;打开目录浏览功能autoindex_formathtmlhtml、xml、json、jsonp 分别用这几个风格展示目录http, server, location