You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Rafael Caceres <rc...@aasa.com.pe> on 2005/05/19 23:22:42 UTC

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

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