You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by aaron smith <be...@gmail.com> on 2007/08/17 21:54:55 UTC
[users@httpd] HTTP authentication, with proxy?
Hello All,
I've got authentication in place on my server for every virtual host. with
the usual:
<Directory "/whatever">
Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /etc/httpd/conf/htpasswd
AuthName "Authorized users only!"
require valid-user
satisfy any
</Directory>
Now in the VirtualHost declaration I'm proxying all requests over to a rails
app:
<VirtualHost *:80>
ServerName wiki.[mydomain].com
ServerAdmin webmaster@cpbinteractive.com
ProxyRequests Off
ProxyPreserveHost On
RewriteEngine On
RewriteRule ^/(.*) http://127.0.0.1:2600/$1 [P,L]
ProxyPassReverse / http://127.0.0.1:2600/
</VirtualHost>
But it seems that with the proxy it overrides HTTP authentication.. Also
note that I changed the directory to "whatever" and the serverName to
[mydomain].. that isn't actualkly in the vhosts file.
Any ideas?
Thanks all
Re: [users@httpd] HTTP authentication, with proxy?
Posted by aaron smith <be...@gmail.com>.
perfect, thanks.
On 8/17/07, Joshua Slive <jo...@slive.ca> wrote:
>
> On 8/17/07, aaron smith <be...@gmail.com> wrote:
>
> > But it seems that with the proxy it overrides HTTP authentication..
>
> That's because the proxy never hits a local "<Directory>". Use
> <Location /> instead.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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] HTTP authentication, with proxy?
Posted by Joshua Slive <jo...@slive.ca>.
On 8/17/07, aaron smith <be...@gmail.com> wrote:
> But it seems that with the proxy it overrides HTTP authentication..
That's because the proxy never hits a local "<Directory>". Use
<Location /> instead.
Joshua.
---------------------------------------------------------------------
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