Re: Userid and reverse proxy

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

 



2009/5/27 Efjestad, Dag <Dag.Efjestad@xxxxxxxxx>:
>    <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@xxxxxxxxx
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux