perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject RE: ENV problems when upgrading to Apache2.0
Date Wed, 11 Aug 2004 04:14:50 GMT
> Looking at the log 
> files it seems that with Embperl running as a cgi the request 
> is actually a redirect.

That depends on the way you configure Apache, but normaly Apache will make
an internal redirect to call Embperl. I am not quite sure how Apache 2
handles REMOTE_USER on redirects, but normaly it is only set when an
authentication is required. Maybe this is not done for the redirect.

> Is there an option I can give to 
> Embperl or Apache to redirect the REMOTE_USER variable as well?
> 

At the top of your embpcgi.pl add

$ENV{REMOTE_USER} = $ENV_{REDIRECT_REMOTE_USER} ;

But you have to be aware that you then only see the user from the main
request and not from the internal redirect. As you decribed things that is
what you want, but you should keep it in mind.

Gerald



---------------------------------------------------------------------------
Gerald Richter            ecos electronic communication services gmbh
IT-Securitylösungen * Webapplikationen mit Apache/Perl/mod_perl/Embperl

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
---------------------------------------------------------------------------
ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
---------------------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message