Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-07-2011, 11:04 AM   PM User | #1
CrazyCrisUk
New Coder

 
Join Date: Jan 2011
Posts: 42
Thanks: 5
Thanked 0 Times in 0 Posts
CrazyCrisUk is an unknown quantity at this point
Trouble changing document root

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.
CrazyCrisUk is offline   Reply With Quote
Old 01-07-2011, 11:50 AM   PM User | #2
CrazyCrisUk
New Coder

 
Join Date: Jan 2011
Posts: 42
Thanks: 5
Thanked 0 Times in 0 Posts
CrazyCrisUk is an unknown quantity at this point
SOLVED

Remember to restart apache after changes!!!
CrazyCrisUk is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:50 PM.


Advertisement
Log in to turn off these ads.