how to configure apache to view hidden (`.`) files?
How do I make a directory listing in apache show the .
/hidden files? I tried both
<Directory /var/www/*>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
and
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
but neither show the hidden files
Solution 1:
Somewhere you have an IndexIgnore
directive (mods-enabled/autoindex.conf
?) that adds dotfiles to the list of files to ignore (mine has .??*
) . Once a pattern has been added to the ignore list, it can't be removed.
Solution 2:
To amend DerfK's answer: in apache version 2.4 you can, in fact, reset IndexIgnore via a new directive, IndexIgnoreReset