Hi Michael,

You're using Jkmount /servlet which is probably incorrect, you must use
the same "url" as in tomcat. The correct location for the examples
servlets is /servlets-examples/servlet:

JkMount /servlets-examples/servlet worker1

The idea behind jk is to let apache serve all static content and pass
all dynamic to tomcat, since apache is faster then tomcat. So you should
create an alias for all static content and a jkmount for all jsp's
and servlets.

--
Staf Wagemakers

email:          staf at patat.org
homepage:       http://staf.patat.org


On Wed, Mar 24, 2004 at 10:17:58AM +0100, Michael Kastner wrote:
> 
> I got a problem getting the servlets examples and the admin application 
>   via mod_jk 1.3 connector to work. I can call the servlets-examples' 
> main page but receive a server error when I want to call a particular 
> servlet example.
> 
> The jsp-examples work, by the way.
> 
> First: To me, it seems the information in the mod_jk 1.3 documentation 
> does not explicitly say where to put the JkMount directives. Is it to be 
> set in the general section of the httpd.conf or in the VirtualHost 
> section?
> 
> Also, do I have to alias _each_ webapp URI?
> 
> Well, at the moment I set this in the general section of httpd.conf 
> (following the modules section):
> 
> -- snip --
> JkWorkersFile      /etc/httpd/conf/workers.properties
> JkLogFile          /var/log/httpd/mod_jk.log
> JkLogLevel         info
> JkLogStampFormat   "[%a %b %d %H:%M:%S %Y] "
> JkOptions          +ForwardKeySize +ForwardURICompat -ForwardDirectories
> JkRequestLogFormat "%w %V %T"
> -- pins --
> 
> and I set this in the Virtual Host section of httpd.conf:
> 
> -- snip --
> <VirtualHost *>
>      ServerName www.myserver.athome
>      DocumentRoot /var/lib/tomcat5/webapps/ROOT
>      Alias /admin /var/lib/tomcat5/webapps/admin
>      Alias /servlets-examples /var/lib/tomcat5/webapps/servlets-examples
>      Alias /jsp-examples /var/lib/tomcat5/webapps/jsp-examples
>      JkMount /*.jsp worker1
>      JkMount /servlet/* worker1
> </VirtualHost>
> -- pins --
> 
> Any help or hint is very much appreciated.
> 
> Thanks for reading this
> 

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

Reply via email to