You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by K Anand <ka...@sail-steel.com> on 2005/06/17 09:11:26 UTC
Re: [users@httpd] Basic Authentication over reverse proxy SOLVED
I managed to get it working...What I had to put in was not <Directory
proxy:/xxx/> but
<Directory proxy:http://a.b.c.d/>
Anand
----- Original Message -----
From: "K Anand" <ka...@sail-steel.com>
To: <us...@httpd.apache.org>
Sent: Friday, June 17, 2005 11:21 AM
Subject: [users@httpd] Basic Authentication over reverse proxy
> I want to do basic authentication with reverse proxy...My relevant config
is
> as follows :
>
> ProxyRequests Off
> <Directory proxy:*>
> Order deny,allow
> Deny from all
> Allow from all
> </Directory>
>
> <Directory proxy:/xxx/>
> AuthType Basic
> AuthName "By Invitaion Only"
> AuthUserFile /etc/httpd/conf/passwd/passwords
> Require valid-user
> </Directory>
>
> ProxyPass /xxx/ http://a.b.c.d/xxx
> ProxyPassReverse /xxx/ http://a.b.c.d/xxx
>
> File /etc/httpd/conf/passwd/passwords exists with one user name and
> password.
> When I try basic auth for a normal dir, it works. It asks me for a user id
> and password. But when I tried with proxied dir, it does not ask me .
>
> order of loading of modules is as follows :
>
> LoadModule proxy_module modules/libproxy.so
> LoadModule auth_module modules/mod_auth.so
>
> AddModule mod_proxy.c
> AddModule mod_auth.c
>
>
> Apache/1.3.27 (Unix) (Red-Hat/Linux)
>
> What could the problem be ? Any pointers would be appreciated.
>
> Anand
>
>
> ---------------------------------------------------------------------
> 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