Howtos/Autoindex on nginx
< Howtos
Jump to navigation
Jump to search
You can activate autoindex on the main server folder (/var/www/html/
) and/or home folders (~/public_html/
).
autoindex
/var/www/html/
~/public_html/
location ~ ^/~(.+?)(/.*)?$ { alias /home/$1/public_html$2; index index.php index.html index.htm; autoindex on; # this feature automatically lists all files in the public_html folder! }
fancyindex !
https://nginx-extras.getpagespeed.com/modules/fancyindex/
https://installati.one/install-libnginx-mod-http-fancyindex-debian-12/