autoindex subdirectories

Patrick 201904-nginx at jslf.app
Thu May 9 00:26:13 UTC 2019


On 2019-05-09 08:48, Duke Dougal wrote:
> Is there any way to get autoindex to return a recursive list of
> files/directories?

What modules do you have available to work with?

Just using default built modules, there doesn't seem to be a way.

Using non-default modules, you could use:

1) ngx_http_perl + some perl

2) ngx_http_addition + some javascript added to the page to ajax query
and rewrite the page

3) the 3rd-party lua module + some lua


While it's definitely a hack, option #2 seems the best unless you need
to cater to javascript-less clients.

Anyone see a cleaner solution?


More information about the nginx mailing list