Changing the output format of nginx autoindex

I want to share the contents of a folder via http. I installed nginx with autoindex and configured it in my folder. The problem is that I need an html file with a file / folder, but I need some kind of xml with the same information.

Is it possible to do this using standard nginx tools, or do I need to execute some script to solve this problem?

+3
source share
3 answers

You have to use some scripts to make it work. Most of what you can get with nginx configuration is the footer and header .

By the way, developers are looking forward to adding an xml index module to nginx.

+4

1.7.9 :

autoindex on;
autoindex_format xml;

: http://nginx.org/r/autoindex_format

+3

sudo apt install libnginx-mod-http-fancyindex

fancyindex on;

0
source

All Articles