You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ben Stover <bx...@yahoo.co.uk> on 2007/01/12 20:33:23 UTC
[users@httpd] How to resolve this .htaccess conflict ?
Assume there is the .htaccess file show at the bottom of this posting.
At first every read and write access is denied and no permissions are given
because no "allow" statement is entered.
Fine. But now I want to allow some users to access these directories
but only with authentication (login+password).
For these users I setup the three lines AuthName, AuthUserFile and AuthGroupFile.
Notice that I mix a "deny" access instruction not with its counterpart "allow" but
with completely different "Auth..." statements plus OUTSIDE the "Limit" scope !
Are these Auth statements recognized at all or does the missing
"allow" statement above prevent any further permissions ?
In other words: Do the Auth statements have a higher priority
than the non-existence of an allow statement ?
If Auth statements are not considered: Does it change anything if I put these Auth statements
BEFORE the "deny" command (on top of the .htaccess file) ?
.htaccess file:
---
<Limit GET POST>
order deny,allow
deny from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName Authenticated users
AuthUserFile /home/myhtaccess/service.pwd
AuthGroupFile /home/myhtaccess/service.grp
---
Send instant messages to your online friends http://uk.messenger.yahoo.com
---------------------------------------------------------------------
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
Re: [users@httpd] How to resolve this .htaccess conflict ?
Posted by Richard Lynch <ce...@l-i-e.com>.
I don't know the answer, but suspect you could experiment and find out
faster than hearing back from somebody who DOES know the answer...
Though whether that's a Documented Feature or not would be a Good
Question, maybe...
On Fri, January 12, 2007 1:33 pm, Ben Stover wrote:
> Assume there is the .htaccess file show at the bottom of this posting.
>
> At first every read and write access is denied and no permissions are
> given
> because no "allow" statement is entered.
>
> Fine. But now I want to allow some users to access these directories
> but only with authentication (login+password).
>
> For these users I setup the three lines AuthName, AuthUserFile and
> AuthGroupFile.
> Notice that I mix a "deny" access instruction not with its counterpart
> "allow" but
> with completely different "Auth..." statements plus OUTSIDE the
> "Limit" scope !
>
> Are these Auth statements recognized at all or does the missing
> "allow" statement above prevent any further permissions ?
> In other words: Do the Auth statements have a higher priority
> than the non-existence of an allow statement ?
>
> If Auth statements are not considered: Does it change anything if I
> put these Auth statements
> BEFORE the "deny" command (on top of the .htaccess file) ?
>
> .htaccess file:
> ---
> <Limit GET POST>
> order deny,allow
> deny from all
> </Limit>
> <Limit PUT DELETE>
> order deny,allow
> deny from all
> </Limit>
> AuthName Authenticated users
> AuthUserFile /home/myhtaccess/service.pwd
> AuthGroupFile /home/myhtaccess/service.grp
> ---
>
>
>
> Send instant messages to your online friends
> http://uk.messenger.yahoo.com
>
> ---------------------------------------------------------------------
> 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
>
>
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
---------------------------------------------------------------------
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
Re: [users@httpd] How to resolve this .htaccess conflict ?
Posted by Bob <bo...@googlemail.com>.
Ben Stover wrote:
> At first every read and write access is denied and no permissions are given
> because no "allow" statement is entered.
>
> Fine. But now I want to allow some users to access these directories
> but only with authentication (login+password).
See the satisfy directive. Your require directive seems to be missing, too.
--
Bob
---------------------------------------------------------------------
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