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

Re: .htaccess , how to bypass authentication for specific IPs ?



On Mon, 13 Aug 2012 16:30:30 +0100, Tom Grace wrote:

(careful when quoting...)

> On 13/08/12 16:25, Camaleón wrote:
>> On Mon, 13 Aug 2012 10:40:51 +0530, J. B wrote:

(...)

>>> Now I like some IPs to bypass the authentication. Hence I have
>>> modified the rule as
>>>
>>> [...]
>>> Order deny,allow
>>> Deny from all
>>> AuthName "htaccess password prompt"
>>> AuthUserFile /home/askapache.com/.htpasswd AuthType Basic Require
>>> valid-user
>>> Allow from 172.17.10.1
>>> Satisfy Any
>>> [....]
>>>
>>> But it just allow all IPs to bypass the authentication. IS there any
>>> wrong code in the rule set ? The apache version is -  [ Server
>>> version: Apache/2.2.16 (Debian) ]
> 
> You need "Order allow,deny". See
> http://httpd.apache.org/docs/2.0/mod/mod_access.html#order for details.

The order is consistent with the samples given in the link I sent before 
but how is that altering the "Allow from" stanza?

Greetings,

-- 
Camaleón


Reply to: