Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache environment variables accessible inside httpd.conf?

Status
Not open for further replies.

ScubaInstructor

Programmer
Sep 17, 2002
2
DE
Hello!

I want to do the following but without success:

The mod_auth_sspi sets an environment variable REMOTE_USER that I can access from perl.

I want to write this environment variable into the http header as the request is passed on via mod_jk2 to Tomcat. But I always get a null value for the header within Tomcat. Setting a fix string value for the header works fine.

So is it possible to gain access to environment variables inside httpd.conf?

Kind regards
Jochen

http.conf
<Location /ntlm >
[...]

AuthName "Login using your DOMAIN username and password"
AuthType SSPI
SSPIAuth On
SSPIAuthoritative On
SSPIOfferBasic On
require valid-user

RequestHeader set userid %{remote_user}e //Does NOT work
RequestHeader set user RABBIT // Does work!!!
</Location>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top