> I am trying to set up Tomcat 5.0.28 to run under an Apache Web Server
> 2.0.59. I have the correct mod_jk.so and have everything set up just fine on
[quoted text clipped - 66 lines]
> </Location>
> </IfModule>
You need to add a JkMount for the myservlet program you are trying to run.
I never added an Alias, Location nor Directory for servlets-examples.
This is all I added for jsp-examples:
JkWorkersFile "conf/workers.properties"
JkLogFile "logs/mod_jk.log"
JkLogLevel error
JkMount /jsp-examples default
JkMount /jsp-examples/* default

Signature
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Ike - 01 Oct 2006 01:32 GMT
I cannot understand why this is so seemingly complicated.
I have C:\Tomcat as CATALINA_HOME
Everything should go under webapps/ROOT
I have a servlet, myservlet.class.
I put it in C:\Tomcat\webapps\ROOT\classes.
Im just down to what I need to put into httpd.conf, but there really is no
documetnation I can find on this very simple exercise. Can someone who is
doing this please explain what would go into httpd.conf using I am using
mod_jk. Thanks, Ike
Ike - 01 Oct 2006 02:42 GMT
OK....I got it (finally, despite the stupid pills)....
myservlet.class goes in C:\Tomcat\webapps\gg\WEB-INF\classes.
httpd.conf gets:
JkMount /gg/servlet/* example
now, if I hit:
http://localhost/gg/servlet/myservlet
it is invoked by tomcat. If I hit
http://localhost/gg
then it invokes the /htdocs under Apache for the typical Apache webserver --
exactly as I want. -Ike
> I am trying to set up Tomcat 5.0.28 to run under an Apache Web Server
> 2.0.59. I have the correct mod_jk.so and have everything set up just fine
[quoted text clipped - 14 lines]
> servlets-examples. (Addtionally, I will have multiple and different
> a_domain's)
<VirtualHost 217.34.156.188>
ServerAdmin simon@jasmine.org.uk
ServerName www.stewartry-wheelers.org
DocumentRoot /home/wheelers/public_html/
ErrorLog /var/log/apache/wheelers_error.log
TransferLog /var/log/apache/wheelers_access.log
JkMount /wheelers/* ajp13
JkMount /wheelerswiki/* ajp13
</VirtualHost>
<VirtualHost 217.34.156.188>
ServerAdmin simon@jasmine.org.uk
ServerName www.7-24.org.uk
DocumentRoot /home/seven24/public_html/
ErrorLog /var/log/apache/7-24_error.log
TransferLog /var/log/apache/7-24_access.log
JkMount /seven24/* ajp13
</VirtualHost>

Signature
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/