Monday, 15 November 2010

Shared Apache Server Directories require index page in order to access files from the web

For security reasons, Apache hosts enforce that, for a directory and it’s contents to be accessible from the web, the directory must contain an index.htm page.

This can be overridden by adding a .htaccess file with the following lines included;

ErrorDocument 401 "Unauthorized"
DirectoryIndex index.php index.shtml index.html publish.htm publish.html

No comments:

Post a Comment