Score:1

Changing the HTML of Apache's directory listing

us flag
x43

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?

Score:1
us flag
x43

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>
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.