httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <>
Subject Re: [users@httpd] Re: apache/linux newbie has Test Page that won't die
Date Fri, 09 Feb 2007 00:08:49 GMT

On Feb 8, 2007, at 3:56 PM, Urijah Kaplan wrote:

> That worked! I restarted (I didn't know I had to do that--when am I
> supposed to restart?) and the folder from /home/<my name>/public_html
> popped up. Seizing the opportunity, I put in my website there
> (changing the default.htm to index.html) and it worked! So, this
> experience leaves me with a few questions
> 1.When should I know to restart the server?

When you change the configuration file(s). Usually, a 'graceful'  
restart is enough.

> 2. Why aren't the pages being served from /var/www/html/ like the
> DocumentRoot says? Is there another configuration file that's
> overriding it somewhere?

As soon as you define <VirtualHost> containers, they take over from  
the 'Main Server' configuration. The first virtual host in your  
configuration is the Default and receives non-matching requests (that  
don't contain a matching Host: header).

> 3) Why can't I use default.htm (not a big deal obviously)

Add it to the DirectoryIndex directive. You can do this per virtual  

> 4) Since I clearly don't know what I'm doing, what would be a good
> resource/book to use to teach me more about Apache/Linux?

The Apache documentation:

I have always liked "Apache: the Definitive Guide" by Ben and Peter  

Also, hang out on this list and you'll be helping other people in no  


PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF

View raw message