httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suomi <apa...@ayni.com>
Subject Re: [users@httpd] Realm Protection
Date Sat, 11 Oct 2003 06:42:56 GMT
If you use directory, files, and location directives on a web site, you 
must consider the following processing sequence:

the directives directory, directorymatch, files, filesmatch, location, 
locationmatch are processed in that order, which means that a files 
directive will overrun a directory directive (if that where possible), 
and a location directive will overrun both of them

be aware that the location, locationmatch directives are processed last, 
and they may invalidate any directory, directorymacht and files, 
filesmatch directives. If you have a location, locationmatch directive 
in the general setup in httpd.conf, it will overrun all 
directory,directorymatch and files,filesmatch directives you specify in 
partivular virtual-server directives.


the order of processing these directives is never mentionned in any book 
about apache. and there are cases, where it really gets important

suomi

Clint Davis wrote:

>I have the following in my Apache 1.3.27 httpd.conf file. But, I can still
>freely access documents in the "files" directory that are supposed to be
>protected. What's wrong here?
>
>
><Directory /Volumes/Data/WebSites/www.nunn-better.com/5jc19p/files>
>Options None
>Order allow,deny
>Allow from all
>AuthName "NUNN-BETTER"
>AuthType Basic
>AuthUserFile /Library/Tenon/System/Configuration/users.txt
>AuthGroupFile /Library/Tenon/System/Configuration/groups.txt
>require user chatfield croyer dhughes dverdeyen dwadsworth
></Directory>
>
>
>---------------------------------------------------------------------
>Clint Davis
>Webmaster / Interactive Media Specialist
>Gray Loon Marketing Group, Inc.       http://www.grayloon.com
>204 Main Street | Evansville, IN 47708 | Phone:812-422-9999
>---------------------------------------------------------------------
>
>
>---------------------------------------------------------------------
>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
>
>  
>


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


Mime
View raw message