tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: JkMount and Context path
Date Sat, 19 Aug 2006 23:32:14 GMT
JkMount maps all JSP (*.jsp) to ajp13 
JkMount /*.jsp ajp13

/*map ajp13 to your webapp docRoot /var/tomcat4/webapps/domain1
<VirtualHost *>
    DocumentRoot /var/tomcat4/webapps/domain1
    JkMount /* ajp13

/*server.xml maps known webapp docBase /var/tomcat4/webapps/domain to domain name(domain1)
via this entry*/
<Host name="" debug="0" appBase="webapps" unpackWARs="true">
<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="virtual_log1." suffix=".log" timestamp="true"/>
<Context path="" docBase="/var/tomcat4/webapps/domain1" debug="0" reloadable="true"/>

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.

> I've a question regarding the way jk_mod relays requests to Tomcat
> servlets. If I have set my virtualhost to supposedly send requests
> with such JkMount directive URL prefix, /serve/* and /serve/*.jsp,
> then I take it, the only way for jk_mod relays requests for this
> virtualhost to Tomcat web application listening on the other end is
> the actual web application "name" (or directory where it is located)
> to be "serve".
> On other hand, if the JkMount directive is /*/eservlets/* (or
> /*/eservlets/*.jsp), then all the web applications that have a servlet
> /eservlets/* mapping are being granted such connection between
> Apache->jk_mod->Tomcat instance. So now, what if we change the web
> application's Context's path, that is <Context path="/someuri"...>,
> then how is the servlet with /eservlets/* mapping is going to be
> accessed?
> Would it be or
> perhaps,
> (assuming the web application name is "myapp"? In any case, the former
> would produce HTTP 400 and the latter HTTP 404. So obviously Context
> path has no bearing in accessing the servlets, that is
> works just fine but
> inclusion of "someuri" would result in HTTP 400. So what is going on?
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:
View raw message