You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Boyle Owen <Ow...@swx.com> on 2002/12/16 10:56:02 UTC

RE: [users@httpd] Newbie needs help

http://httpd.apache.org/docs/mod/core.html#directory

For starters..

Basic rule is that directives for one directory apply to all
sub-directories UNLESS superseded by more specific directives (i.e. in a
container for a sub-dir). Conflicting directives for the same directory
- last take precedence.

Rgds,

Owen Boyle

PS post in plain-text please.
-----Original Message-----
From: Dennis Putnam [mailto:dap1@mindspring.com]
Sent: Donnerstag, 12. Dezember 2002 20:06
To: users@httpd.apache.org
Subject: [users@httpd] Newbie needs help


I apologize in advance for my denseness but I am just not understanding
the <Directory> directives and hierarchy. Can someone please point me to
an "Apache Directives for Dummies" document? The normal documentation
and tutorials I have found are not sinking in.

In the event one does not exist I'll explain my question in the hopes
someone will have mercy. :-)

I'm running Apache 1.3.27 on Windows ME.

I am using the vanilla distribution version of httpd.conf with the
exception of filling in the appropriate DocumentRoot value. My directory
tree is as follows:

"C:/httpd/apache/htdocs" <-----DocumentRoot 
"index.html" 
        . 
"special folder" 
"setup.php" 
       .


With everything vanilla, it works as I expected including PHP. I then
added the following directive to httpd.conf:

<Directory "C:/httpd/apache/htdocs/special folder">
   Deny from All
</Directory>

I will add specific accesses later when I get this figured out. Given
the above, access to "setup.php" is granted to anyone anyway. I thought
the "Deny from All" would prohibit access by everyone. My expectation
was that a link to "setup.php" in "index.html" would result in the
"Forbidden" error page. Obviously I am not understanding the hierarchy
of these directives and need help.

Also, in the default httpd.conf there is an example of a user directory
that is one level above the DocumentRoot directory
("C:\httpd\apache\users"). If http://localhost/ accesses the
DocumentRoot, how does one specify a URL that is higher in the tree then
root? I tried playing with this as well and couldn't get it to work.

TIA
 


------------------------------------------------------------------------
--------------------------
Dennis Putnam           Public Key can be obtained from:
Loganville, Ga.
<http://www.geocities.com/Heartland/Estates/8573>

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org