How can I modify to Nginx’s autoindex so that it will generate a JSON version of the index instead of HTML? Or is there a module that already does that?
I want to have this;
Instead of;
This blog writer seems to have done it;
http://lamsonproject.net/blog/2009-08-03.html
But he didn't mention how.
Starting from the version 1.7.9 you can use:
See the docs: http://nginx.org/r/autoindex_format
Zed (owner of the blog post shared his code with me, you need to recompile autoindex module and it's there.
"Yep here you go. Turns out I used the netbsd pkgsrc so it's a clean patch that I made for the package build. should work with netbsd version nginx-0.8.20.
-- Zed A. Shaw"