problem with $_SERVER['DOCUMENT_ROOT']

Post non-phpwcms related topics here - but I don't want to see "hey check this or that other cms". Post if you have a point or worthwhile comment, don't post just to increase you post count!
Post Reply
DusX
Posts: 99
Joined: Thu 1. Apr 2004, 16:00
Location: Canada

problem with $_SERVER['DOCUMENT_ROOT']

Post 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
DusX
Posts: 99
Joined: Thu 1. Apr 2004, 16:00
Location: Canada

Post 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???
======
DX
======
Post Reply