AuthBasic - Adding one Exception

AuthBasic - Adding one Exception

am 09.10.2009 09:24:51 von Prasanna Ram Venkatachalam

--001636ed67f3c94dae04757b79a5
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I am using Apache configured with mod_auth_basic module. I added the
AuthType Basic and other related information in .
This is protecting all accesses to all locations in WebServer. Now i want to
add one exception for a particular page /xyz, if it is accessed from a
particular host abc
I tried putting a separate and used Allow, Require and
Satisy Any directives. It did not work and still asks for credentials. Is
there a way to allow this kind of exception? Please advice.

This is what am using now

AuthType Basic
AuthName TEST
AuthUserFile "location to user file"
Require valid-user


Require valid-user
Order allow,deny
Allow from abc
Satisfy Any


Thanks in advance

Regards
Prasanna Ram

--001636ed67f3c94dae04757b79a5
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi All,

=A0

I am using Apache configured with=A0mod_auth_basic module. I added the=
AuthType Basic and other related information in <Location />.

This is protecting all accesses to all locations in WebServer. Now i w=
ant to add one exception for a particular page /xyz, if it is accessed from=
a particular host abc

I tried putting a separate <Location /xyz> and used Allow, Requi=
re and Satisy Any directives. It did not work and still asks for credential=
s. Is there a way to allow this kind of exception? Please advice.


=A0

This is what am using now

<Location />
AuthType Basic
AuthName TEST
AuthUserFile =
"location to user file"
Require valid-user
</Location>=
;

<Location /xyz>
  =A0 Require valid-user
  =A0 Ord=
er allow,deny  =A0
  =A0 Allow from abc
  =A0 Satisfy An=
y
</Location>

=A0

Thanks in advance


Regards
Prasanna Ram


--001636ed67f3c94dae04757b79a5--

Re: AuthBasic - Adding one Exception

am 09.10.2009 12:00:25 von aw

Prasanna Ram Venkatachalam wrote:
> Hi All,
>
> I am using Apache configured with mod_auth_basic module. I added the
> AuthType Basic and other related information in .
> This is protecting all accesses to all locations in WebServer. Now i want to
> add one exception for a particular page /xyz, if it is accessed from a
> particular host abc
> I tried putting a separate and used Allow, Require and
> Satisy Any directives. It did not work and still asks for credentials. Is
> there a way to allow this kind of exception? Please advice.
>
> This is what am using now
>
> AuthType Basic
> AuthName TEST
> AuthUserFile "location to user file"
> Require valid-user
>

>
> Require valid-user
> Order allow,deny
> Allow from abc
> Satisfy Any
>

>
Can't you just remove the "Require valid-user" ?


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See 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: AuthBasic - Adding one Exception

am 09.10.2009 16:04:05 von Prasanna Ram Venkatachalam

--001636eee39e9116cc0475810d5e
Content-Type: text/plain; charset=ISO-8859-1

>
> Can't you just remove the "Require valid-user" ?
>
Thank Andre. I tried that.
Removing that from is still asking for credentials :( (i
guess because / is protected)
I want the whole root to be protected, so i cannot remove it from />
Just want to add an exception for a single page for single IP/host

Regards
Prasanna Ram

--001636eee39e9116cc0475810d5e
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable


px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Can't you just remove the &q=
uot;Require valid-user" ?

Thank Andre. I tried that.

Removing that from <Location /xyz> is still asking for credentia=
ls :( (i guess because / is protected)

I want the whole root to be protected, so i cannot remove it from <=
Location />

Just want to add an exception for a single page for single IP/host v>
=A0

Regards
Prasanna Ram


--001636eee39e9116cc0475810d5e--