On Oct 3, 2006, at 7:08 PM, Jason Lingel wrote:
Is there a way to modify an environment variable that gets passed
to a CGI? For example, I'm doing Kerberos authentication and the
realm gets appended to the REMOTE_USER variable, e.g., REMOTE_USER=
[EMAIL PROTECTED] I just want username and not the realm. I
would prefer not to do this in the CGI because the CGIs are already
written (legacy in house application).
TIA.
I just did this using mod_rewrite by setting the E flag.
RewriteRule /.* - [E=varname:value]
In my case, I needed to pass the request uri to ColdFusion (which
doesn't appear to pass it along as it should). I did so using this
capability (I was already using mod_rewrite).
RewriteRule /.* /my/redirect.cfm [E=MY_REQUEST_URI:%{REQUEST_URI},PT]
Worked like a charm.
Hope this helps.
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]