Hi Bill-
following
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html#proxypass
I *thought* ProxyPass was
ProxyPass /mirror/foo/ http://foo.com/
cause a local request for the
<http://wibble.org/mirror/foo/bar> to be internally converted into a proxy
request to
<http://foo.com/bar>.
so..
ProxyPass /HelloWorld http://locahost:8009/
causes a local request for the
http://HelloWorld/HelloWorld
will yield
http://localhost:8009/HelloWorld
ajp is configured by enabling the AJP13 connector in Tomcat
%CATALINA_HOME%/conf/server.xml on Port 8009
http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html
HTH/
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
----- Original Message -----
From: "Bill Doster" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Cc: "Bill Doster" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2007 3:49 PM
Subject: passing user variable from apache2.2 via mod_proxy_ajp to
tomcat5.5?
On FC6 (intel), I need to have tomcat servlets know the user associated
with each ajp request.
After authenticating (I'm using mod_cosign), when I load https://host/
cgi-bin/hi (a shell script which outputs html-ized "Hello $REMOTE_USER"
the web-page returned is "Hello <user>" for whatever user I authenticated
as.
I've got mod_proxy_ajp set-up to:
ProxyPass /HelloWorld ajp://locahost:8009/HelloWorld
Since I have the entire host set-up to be cosign-authenticated,
accessing:
https://host/HelloWorld/HelloWorld
causes cosign to force authentication (iff I haven't already). Then the
request gets passed via mod_proxy_ajp
to tomcat (running on the same host on port 8009). HelloWorld happily
executes, but all the ways that I've coded that I thought would receive
the connection user... haven't.
Since I'm very much a beginner Java person, I've tried googling and
FAQ'ing around but ended up following numerous dead ends. I've read over
the mod_proxy_ajp source and from ajp_header.c it certainly seems like
"user" is always provided to tomcat as long as user is set for the
connection (on the apache side).
I'd really appreciate any tips on how to access this from a servlet
running under Tomcat. Or any tips that would enable me to at least prove
to myself that tomcat received it from mod_proxy_ajp (like how to tinker
with tomcat logging).
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]