You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Johnson, Garrett" <Jo...@cbsnews.com> on 2002/12/30 20:52:04 UTC

Apache HTTPD & Tomcat: Where does mod_jk step in?

Ladies and Gentlemen:

I'm using Apache 2.0.43 and Tomcat 4.1.12 with JK on Win2K.  I'm using the
JkMount directives to send all requests to /servlets/ and /*.jsp to Tomcat.

However, I need to know where in the server processing JK actually
intercepts those requests and shoots them off to tomcat, and what
preprocessing Tomcat does to them afterwards.  Can Tomcat use it's own
Realms to handle authentication or does Apache need to do that?  Do aliases
map the request in Apache before JK grabs them?

WORKFLOW.  That's what I need to understand.  Does anyone know much about
that?  Is there some documentation available somewhere on this workflow?
I've ripped www.apache.org and jakarta.apache.org apart and found nothing.

Help me, Obi-Wan Kenobi.  You're my only hope.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Apache HTTPD & Tomcat: Where does mod_jk step in?

Posted by Bill Barker <wb...@wilshire.com>.
Now that we are done attacking clones ....:)

The workflow is pretty simple.  In the map-to-storage hook, mod_jk detects
that the request should be handled by Tomcat, and registers itself as the
handler.  Later, when the "handler" hook is called (I forget the name for
Apache2, and don't feel like looking it up :), mod_jk passes the request
information (e.g. RequestURI, RequestMethod, Headers) to Tomcat, who then
processes the Request normally (i.e. not much differently than if it had
been recieved by the HTTP/1.1 connector).  The Connector also aranges to
send the data in the Response OutputStream/Writer back to mod_jk as the data
is available.  When mod_jk recieves the output, it sends it back to the
client.

It's been a while since I've gone through the Apache2 hooks, but I believe
that Alias directives aren't handled in map-to-storage, so they should be
orthoganal to the mod_jk directives (which is useful when you want Apache2
to serve static content).

Unless you set tomcatAuthentication="false" on the connector (and don't
configure security via Apache directives), then Tomcat's Realms will handle
all authentication/authorization.  But it is not a two-way thing.  You need
to set
'JkMount /MyApp/protected/* ajp13' to prevent Apache from serving static
content without authorization.

"Johnson, Garrett" <Jo...@cbsnews.com> wrote in message
news:5DE7B60BFBA5D411B961000629D5225552D787@NYCCNDX3...
> Ladies and Gentlemen:
>
> I'm using Apache 2.0.43 and Tomcat 4.1.12 with JK on Win2K.  I'm using the
> JkMount directives to send all requests to /servlets/ and /*.jsp to
Tomcat.
>
> However, I need to know where in the server processing JK actually
> intercepts those requests and shoots them off to tomcat, and what
> preprocessing Tomcat does to them afterwards.  Can Tomcat use it's own
> Realms to handle authentication or does Apache need to do that?  Do
aliases
> map the request in Apache before JK grabs them?
>
> WORKFLOW.  That's what I need to understand.  Does anyone know much about

> that?  Is there some documentation available somewhere on this workflow?
> I've ripped www.apache.org and jakarta.apache.org apart and found nothing.
>
> Help me, Obi-Wan Kenobi.  You're my only hope.





--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Apache HTTPD & Tomcat: Where does mod_jk step in?

Posted by Milt Epstein <me...@uiuc.edu>.
On Mon, 30 Dec 2002, Johnson, Garrett wrote:

> Ladies and Gentlemen:
>
> I'm using Apache 2.0.43 and Tomcat 4.1.12 with JK on Win2K.  I'm
> using the JkMount directives to send all requests to /servlets/ and
> /*.jsp to Tomcat.
>
> However, I need to know where in the server processing JK actually
> intercepts those requests and shoots them off to tomcat, and what
> preprocessing Tomcat does to them afterwards.  Can Tomcat use it's
> own Realms to handle authentication or does Apache need to do that?
> Do aliases map the request in Apache before JK grabs them?
>
> WORKFLOW.  That's what I need to understand.  Does anyone know much
> about that?  Is there some documentation available somewhere on this
> workflow?  I've ripped www.apache.org and jakarta.apache.org apart
> and found nothing.
>
> Help me, Obi-Wan Kenobi.  You're my only hope.

Use the source, Luke.

(Sorry, you asked for that one :-).

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
mepstein@uiuc.edu


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>