You need JkMounts for every URL you intend to send to Tomcat.  Most people
use the default wildcards:

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

John


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 13, 2002 1:10 PM
> To: Tomcat Users List
> Cc: [EMAIL PROTECTED]
> Subject: Re: jsps and servlets don't work
> 
> 
> I have from my auto generated file:
>    #################### d1.selectacast.net:/examples 
> ####################
> 
>     # Static files
>     Alias /examples 
> "/local/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples"
> 
>     <Directory 
> "/local/jakarta-tomcat-4.1.12-LE-jdk14/webapps/examples">
>         Options Indexes FollowSymLinks
>     </Directory>
> 
> 
>     # Deny direct access to WEB-INF and META-INF
>     #
>     <Location "/examples/WEB-INF/*">
>         AllowOverride None
>         deny from all
>     </Location>
> 
>     <Location "/examples/META-INF/*">
>         AllowOverride None
>         deny from all
>     </Location>
> 
>     JkMount /examples/jsp/security/protected/j_security_check  ajp13
> 
> ... So I have to add more JkMounts for each app?
> 
> On Thu, 12 Dec 2002 [EMAIL PROTECTED] wrote:
> 
> > Check to make sure that you have your mime types all working
> > 
> > <Location /examples>
> > JkMount /*.jsp ajp13
> > JkMount /servlet/* ajp13
> > </Location>
> > 
> > In ${CATALINA_HOME}/conf there should be (or at least there 
> used to be) 
> > a file that you can just include in apache that defines 
> these types of 
> > declarations. I forget whether it was called mod_jk-auto or 
> something 
> > to that effect.
> > 
> > The bottom line is check to make sure that you have JkMount and 
> > JkWorkersFile defined. You can also have JkLogLevel for debugging 
> > purposes and JkLogFile (?). Most of this is from memory so 
> not sure if 
> > that's what its called.. but hopefully should give you an idea.
> > 
> > Hope that helps
> > 
> > Jan-Michael
> > 
> > 
> > ----- Original Message -----
> > From: Joseph Shraibman <[EMAIL PROTECTED]>
> > Date: Thursday, December 12, 2002 6:09 pm
> > Subject: jsps and servlets don't work
> > 
> > > I finally got apache to connect to tomcat using mod_jk, but jsps 
> > > and servlets don't work. 
> > > Going to a jsp just shows the source. Is having the web.xml in my 
> > > conf directory enough, 
> > > or do I have to include in some other config file?
> > > 
> > > To see what is happening:
> > > http://d1.selectacast.net:8000/examples/jsp/
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   <mailto:tomcat-user-
> > > [EMAIL PROTECTED]>For additional commands, e-mail: 
> > > <mailto:[EMAIL PROTECTED]>
> > > 
> > > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
> 


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

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

Reply via email to