Linux Random

Dreamhost & Favicons

So I had a directory that I wanted listed on Dreamhost. It appears more recent than the last time I have done this that you have to disable the default coming soon template.

You can easily do this by creating a .htaccess file in the root of the directory you would like to list with the following content:

DirectoryIndex disabled
Options +Indexes

The next hurdle was dreamhost automatically generates blank favicon files so even if you delete them, they will be regenerated.

We can mitigate this as well in our newly created .htaccess by adding this final line. It will hide the files from our users browsing the directory.

IndexIgnore favicon.gif favicon.ico


Leave a Reply