Autoindex - Filter by filename?

Francis Daly francis at daoine.org
Fri Nov 7 08:23:20 UTC 2014


On Thu, Nov 06, 2014 at 06:54:31PM -0500, mevans336 wrote:

Hi there,

> Is there a way to have autoindex only display certain files?

Using the stock nginx autoindex module, no.

Documentation is at
http://nginx.org/en/docs/http/ngx_http_autoindex_module.html

You could compile in a separate module that does do what you want -- there
is one likely-looking one listed on http://wiki.nginx.org/3rdPartyModules,
but I'm sure that others can exist.

Or you could put your preferred "autoindex" logic in a script which
nginx causes to be run as an argument to "index": http://nginx.org/r/index

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list