SymptomsWhen trying to access a site H-Sphere default page is shown, before that one of the following changes were performed:
1) java tool PostApacheConfigs was used with -ic flags
2) 'Directory Indexes' setting was disabled in end-user's panel (web options)
CauseWhen site's web settings are changed the changes are pushed to its vhost config on the system, if some of default files do not exist in sites root directory - they are recreated. In case the files exist but are changed - they are left intact.
These two files belong to default ones: index.html and login.html.
H-Sphere Apache is configured the following way:
DirectoryIndex index.html index.htm index.php index.php3 index.shtml index.wml index.pl index.cgi index.php4 index.phtml index.swf default.html default.htm default.php default.php3 default.shtml default.wml default.pl default.cgi default.php4 default.phtml default.swf
If the first file exists - Apache loads it, if it does not - the second one is tried until existing one is found.
Some users delete index.html to load for example index.php, however it is incorrect from H-Sphere point of view as it thinks that the file should exist - user should have used 'Directory Indexes' feature to explicetely tell to use index.php instead of default index.html
Resolution1) quick way: move just created index.html to index.html.old
2) correct way would be to use the feature 'Directory indexes' in end-users panel to specify your own default page, see this documentation for details