Page 1 of 1

problem with $_SERVER['DOCUMENT_ROOT']

Posted: Thu 24. Feb 2005, 02:47
by DusX
OK I just set up a new server and I have a few sites running on it.
all but one are ok..

One receives the incorrect path for $_SERVER['DOCUMENT_ROOT']
while the others get the correct path.

Can anyone plase tell me why this might happen, and how I can set it correctly???

Thanks

Posted: Thu 24. Feb 2005, 04:08
by DusX
OK.. I found the issue.

seems to be in the in httpd.conf

the DocumentRoot setting for http://www.site1.com is set correctly
for the site to run, but the DocumentRoot setting for main.site1.com is set
differently and seems to be over ruling the other.

I don't know if I should change the DocumentRoot setting for
main.site1.com since it is the main server domain?

Anyone else know???