Hello Milo -

> -----Original Message-----
> From: Milo Hyson [mailto:[EMAIL PROTECTED]]
> Sent: Monday, August 26, 2002 9:30 PM
> To: [EMAIL PROTECTED]
> Subject: mod_jk URL mapping
> 
> 
> context-path-space to Apache's URL-space to be kind of 
> cumbersome. For 
> example, if I have a context of /myapp in Tomcat, I can't 
> make it appear at 
> /mydir/myapp in Apache -- it's forced to /myapp. The mapping 
> is hardcoded, 
> root-to-root.

I believe you can use the "noRoot" parameter, in conjunction with
"forwardAll" in server.xml to determine if the mapping is root-to-root or
not.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/ajp.html

> Suppose you 
> want /myapp/mysubsystem in Tomcat to be accessed via /mything 
> in Apache? 
> Granted, one could set up a redirect or rewrite, but then it would be 
> accessible from two points within Apache: /mything AND 
> /myapp/mysubsystem.

If Apache's JkMount is equal to "/mything", couldn't you setup a Context in
server.xml like this:

Context path="/mything" docBase="/myapp/mysubsystem"

> I think there needs to be something like a cross between 
> JkMount and Alias. 
> For example:
> 
> JkMountPath /myapp/mysubsystem /mything ajp13
> JkMountPath /myapp/myothersubsystem /myotherthing ajp13

I think you may be moving the alias too far to the "front".  Apache doesn't
need to know where your WAR is...only Tomcat needs to know it. Apache sees a
URL, it is mapped to tomcat and handed off, tomcat maps the URL to a docBase
and serves the content back to Apache.

John Turner
[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to