Changing the HTML of Apache's directory listing

Solution 1:

Solved: https://stackoverflow.com/questions/30880975/how-to-style-directory-listings-with-apache-mod-autoindex-using-namewidth-html#55087425

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>