Apache Config HTTPD

Dell / DIMENSION 2400
March 24, 2010 at 11:26:52
Specs: Windows XP, 2.657 GHz / 766 MB
very simple question, but I couldn't find the answer anywhere.
I am somewhat of an Apache newbie and still learning the syntax and all that.
I've been playing around with the HTTPD.conf file, and I noticed something so a question came up.

----------- Code -------------
<Directory "c:/wamp/www/">
Options All FollowSymLinks
Order Allow,Deny
Allow from all

<Directory />
Options -Indexes
AllowOverride None
Order allow,deny
Allow from all

---------- Code ------------

My question is this: Why do I need two seperate directives for the same location?
Both directives seem to be pointing in the same exact place, so I'm wondering what the point is of having each individual directive?

by default, apache has BOTH of these directives already in the httpd.conf file, so there must be some logical reason to having both, and not just one.

I just don't understand why have two, when they point to the same place.

Thanks for any helpful answers! :)


See More: Apache Config HTTPD

Report •

March 24, 2010 at 11:47:08
ack, nevermind.. I think I answered my own question by experimenting with it.

<Directory "c:/wamp/www/">
seems to be very specific, and only effects the lowest possible directory on the server

<Directory />
seems to effect EVERYthing on the entire server, unless otherwise specified with other directives

does this sound right? Sorry, I feel lame for posting a question and then answering it myself.


Report •
Related Solutions

Ask Question