Addon domains not reading index.htm or .html or any index files

Chew

Well-Known Member
Dec 31, 2003
96
0
156
Maryland
Well I've never seen this one before, but for some reason, addon domains aren't reading the index files customers upload to them.

However regular websites are working just fine.

Happens on any addon domain.

Anyone have any ideas on what I can check to resolve this issue?

Thanks,
Matt
 

rootsupport

Member
May 2, 2006
18
0
151
India
You can check the .htaccess file for DirectoryIndex
 

Chew

Well-Known Member
Dec 31, 2003
96
0
156
Maryland
But I shouldn't need to check that it's in the .htaccess file.

It should automatically pick up on an index file and show it by default when browsing a dir.

It would be insane to try and keep up with who adds an addon domain and make sure that it's in there. And what if they overwrite it?

There's got to be a better way.

Matt
 

vincentg

Well-Known Member
May 12, 2004
159
4
168
new york
This has something to do with mod_dir.c I believe

Seems that they changed the way apache creates the httpd.conf file

Prior to this it was working and the index settings was done as such

<IfModule mod_dir.c>
DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp --- and so on
</IfModule>

Now we see only

DirectoryIndex index.html index.wml index.cgi index.shtml index.jsp --- and so on

And mod_dir.c is not used at all - I don't see it anywhere in httpd.conf
UseCanonicalName On was also the default and now it's off??

Unless there is some other place where this line is added:

AddModule mod_dir.c

I think it was a mistake to leave it out of httpd.conf