tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ricks...@mindspring.com
Subject Re: Sooo Close, Apache, Tomcat missing one thing
Date Sat, 25 Nov 2000 14:00:37 GMT
Wouldn't it be simpler to just include the mod_jk.conf-auto file in
your httpd.conf?

Rick
tomcat-user@jakarta.apache.org wrote:
> Hello ,
I am having a disconnect, And I am hoping someone can help,

I have an Apache server and the latest Tomcat.
The stand alone works fine and the example servlets and JSP's work.

I am having trouble understanding the mapping from apache to Tomcat.

In my httpd.conf I have the following:
========================================================================
LoadModule    jk_module         modules/mod_jk.so
AddModule     mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
JkLogFile     /usr2/wwwlogs/mod_jk.log
JkLogLevel    warn

Alias /java "/home/unit/javaapps"

    Options Indexes FollowSymLinks



        ServerAdmin webmaster@xx.com
        ServerName www.somename.com
        ServerAlias xx.xx.xx.xxx
        DocumentRoot /home/unit
        JkMount       /java/*.jsp ajp13
        JkMount       /java/servlet/* ajp13

========================================================================

So When I put in http://www.somename.com/java/servlet/HelloHttpServlet
I get paged not Found.
I know it is getting to the Tomcat server, because I get an error on the
console:
2000-11-24 10:05:17 - Ctx(  ): 404 R(  + /java/servlet/HelloHttpServlet +
null) null

So I am pretty sure it has to do something with the way I have my tomcat
configured. The piece that I can't seem to follow thru on is:
1) I understand that the JkMount statements redirect all /.jps's and
/servlet to
the tomcat server. But how does tomcat know where to look for the
file/class
.


Thanks for any help/ direction

Randy Paries





Mime
View raw message