setting REMOTE_USER with Apache::AuthCookie for use on a 2nd server through mod_rewrite

[prev] [thread] [next] [Date index for 2005/05/19]

From: Rafael Caceres
Subject: setting REMOTE_USER with Apache::AuthCookie for use on a 2nd server through mod_rewrite
Date: 21:22 on 19 May 2005
Hi,

I need to place an application which requires REMOTE_USER to be set in
an external non mod_perl enabled Apache reverse proxy that is called by
an  internal mod_perl enabled Apache through mod_rewrite.
The idea is that a directory in the internal, mod_perl enabled server
would have the following config:

<Directory /a/directory>
..
#Set $r->connection->user (REMOTE_USER)
PerlFixupHandler Authcookie::Based->recognize_user
RewriteEngine on
RewriteRule ^/appname http:external.web.server/appname [P]

</Directory>

to cause the external app to recognize the user when it executes.

Is this possible? 

Rafael Caceres

setting REMOTE_USER with Apache::AuthCookie for use on a 2nd server through mod_rewrite
Rafael Caceres 21:22 on 19 May 2005

Generated at 15:53 on 25 May 2005 by mariachi v0.52