Re: Re: apache/linux newbie has Test Page that won't die

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 host.

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:

http://httpd.apache.org/docs/2.2/

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

http://www.amazon.com/dp/0596002033? tag=sandersweblog-20&camp=14573&creative=327641&linkCode=as1&creativeASI N=0596002033&adid=0H8M3S43QATSYC94MFXZ&

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

S.

--
sctemme@xxxxxxxxxx            http://www.temme.net/sander/
PGP FP: 51B4 8727 466A 0BC3 69F4  B7B8 B2BE BC40 1529 24AF


Attachment: smime.p7s
Description: S/MIME cryptographic signature


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux