XSLT styles for Nginx AutoIndex Pages
-
install
nginx -
install
ngx_http_xslt_module. on Ubuntu, it's named asnginx-module-xslt -
load modules in
nginx.confload_module modules/ngx_http_xslt_filter_module.so; -
download styles.xslt
-
modify server blocks as required. here's a snippet for your reference
server { ...... ...... location / { try_files $uri @autoindex; } location @autoindex { autoindex on; autoindex_exact_size off; autoindex_format xml; xslt_string_param path $uri; xslt_stylesheet path/to/styles.xslt; } ...... ...... } -
check nginx syntax (
sudo nginx -t) and restart nginx process
- Beautiful Colors (borrowed from Keith Knittel - CSSTricks)
- Responsive Page - Mobile users can browse through files easily
- Filter files by name
- Icons - File and Folder icons
This work is based upon dirlist.xslt by Moritz Wilhelmy
