有没有办法在nginx中定义自己的autoindex页面?
我想添加我自己的HTML和CSS到生成的autoindex页面。
Fancy Index模块的存在意味着内置的autoindex模块没有定制能力。 我不确定是否会推荐花哨的索引模块,但它看起来并不是特别的最新版本(上次编辑2007 …)
使用XSLT可以使用xslt模块自定义autoindex的xml输出:
location / { autoindex on; autoindex_format xml; xslt_stylesheet /path/to/custom.xslt }
这是我在这个项目上做的: ngx-superbindex