I'd love to globally customize the HTML and CSS of the default Apache2 directory listing. How could I do this? Is there a folder with the "skeleton" of this HTML?
1 Answer
Enable the autoindex mod, then add a stylesheet in the home (/) directory of your vhost like so:
<VirtualHost *:80>
# all other config
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
HeaderName header.html
IndexStyleSheet /css.css
</IfModule>
# all other config
</VirtualHost>