httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Sasso <stesa...@gmail.com>
Subject Re: [users@httpd] Userid and reverse proxy
Date Wed, 27 May 2009 11:13:57 GMT
2009/5/27 Efjestad, Dag <Dag.Efjestad@solvea.no>:
>    <Location /kongsberg>
>        AuthType basic
>        AuthName "Requierd users"
>        AuthUserFile conf/basicauth.sec
>        Require user user1 user2 user3
>    </Location>
>    ProxyRequests    Off
>    ProxyPass        /kongsberg/ http://aeoas02/kongsberg/%AuthenticatedUserId%
>    ProxyPassReverse /kongsberg/ http://aeoas02/kongsberg/%AuthenticatedUserId%
>
>
> The variabel %AuthenticatedUserId% should contain user1, user2 or user3.
>
> Anyone know a way of solving this problem?

you can try with mod_rewrite and [P]:

RewriteEngine On
RewriteRule ^/kongsberg(.*) http://aeoas02/kongsberg/%{LA-U:REMOTE_USER}$1 [P,L]

bye,
-- 
Stefano Sasso
stesasso@gmail.com
http://www.gnustile.net/

---------------------------------------------------------------------
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


Mime
View raw message