...

View Full Version : Trouble changing document root



CrazyCrisUk
01-07-2011, 11:04 AM
Hi,
I've been setting up apache on a vps, this is my first time and I've been learning the entire way.

My problem is, as default apache looks for the index.html file in /var/www/html/.

I've changed this to /var/www/mysite/ in the httpd.conf file on both the ServerName and Directory lines, but still it looks for the index file in /var/www/html/ and I'm presented with the apache test page even with an index file in /var/www/mysite.

So my question is, is this defined in another file?? Somewhere must still be telling apache to look to /var/www/html/ even though I've changed it in the httpd.conf file.

Thanks in advance. :o

CrazyCrisUk
01-07-2011, 11:50 AM
SOLVED

Remember to restart apache after changes!!! :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum