A responsive theme for Nginx Fancyindex module. Minimal, modern and simple. Comes with a search form, aims to handle thousands of files without any problems.
The fancyindex module can be found here.
- Make sure you have the fancyindex module compiled with nginx, either by compiling it yourself or installing nginx via the full distribution (paquet
nginx-extras
). - Include the content of fancyindex.conf in your location directive (
location / {.....}
) in your nginx config (usuallynginx.conf
). - Move the
Nginx-Fancyindex-Theme/
folder to the root of the site directory. - Restart/reload nginx.
- Check that it's working, and enjoy!
A standard config looks something like this:
fancyindex on;
fancyindex_localtime on;
fancyindex_exact_size off;
# Specify the path to the header.html and foother.html files (server-wise)
fancyindex_header "/Nginx-Fancyindex-Theme/header.html";
fancyindex_footer "/Nginx-Fancyindex-Theme/footer.html";
# Ignored files will not show up in the directory listing, but will still be public.
fancyindex_ignore "examplefile.html";
# Making sure folder where these files are do not show up in the listing.
fancyindex_ignore "Nginx-Fancyindex-Theme";
# Maximum file name length in bytes, change as you like.
fancyindex_name_length 255;
MIT Licensed (file LICENSE). © Lilian Besson, 2016.