I
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 on
a Windows XP SP2 box.
My CATALINA_HOME directory is C:\Tomcat
Everything works fine with the examples for
C:\Tomcat\webapps\servlets-examples. Additionally, everythging works fine
with the Apache web server taking the static content as it should, and
Tomcat taking on the servlets.
What I want to do is have it so that when I call
{a_domain}/servlets/myservlet that the myservlet be executed. But I cannot
seem to get it to do this. My problem is in my httpd.conf file, and I have
tried copying from that portion of it (which works) for servlets-examples.
(Addtionally, I will have multiple and different a_domain's)
Can someone please help me here and show me what I am doing wrong? Thanks,
Ike. My httpd.conf for the relevant portion is below: p.s. yes I have
restarted Apache and Tomcat.
LoadModule jk_module modules/mod_jk.so
<IfModule mod_jk.c>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Alias /jsp-examples "C:/Tomcat/webapps/jsp-examples/"
<Directory "C:/Tomcat/webapps/jsp-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /jsp-examples/*.jsp example
Alias /servlets-examples "C:/Tomcat/webapps/servlets-examples/"
<Directory "C:/Tomcat/webapps/servlets-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /servlets-examples/* example
#now here is my stuff, which isn;t working ###################
#my servlet.class file is in C:\Tomcat\webapps\a_domain\WEB-INF\classes
Alias /a_domain/servlets "C:/Tomcat/webapps/a_domain/"
<Directory "C:/Tomcat/webapps/a_domain/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /a_domain/servlets/* example
<Location /*/WEB-INF/*>
AllowOverride None
deny from all
</Location>
</IfModule>
2.0.59. I have the correct mod_jk.so and have everything set up just fine on
a Windows XP SP2 box.
My CATALINA_HOME directory is C:\Tomcat
Everything works fine with the examples for
C:\Tomcat\webapps\servlets-examples. Additionally, everythging works fine
with the Apache web server taking the static content as it should, and
Tomcat taking on the servlets.
What I want to do is have it so that when I call
{a_domain}/servlets/myservlet that the myservlet be executed. But I cannot
seem to get it to do this. My problem is in my httpd.conf file, and I have
tried copying from that portion of it (which works) for servlets-examples.
(Addtionally, I will have multiple and different a_domain's)
Can someone please help me here and show me what I am doing wrong? Thanks,
Ike. My httpd.conf for the relevant portion is below: p.s. yes I have
restarted Apache and Tomcat.
LoadModule jk_module modules/mod_jk.so
<IfModule mod_jk.c>
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel error
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
JkRequestLogFormat "%w %V %T"
Alias /jsp-examples "C:/Tomcat/webapps/jsp-examples/"
<Directory "C:/Tomcat/webapps/jsp-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /jsp-examples/*.jsp example
Alias /servlets-examples "C:/Tomcat/webapps/servlets-examples/"
<Directory "C:/Tomcat/webapps/servlets-examples/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /servlets-examples/* example
#now here is my stuff, which isn;t working ###################
#my servlet.class file is in C:\Tomcat\webapps\a_domain\WEB-INF\classes
Alias /a_domain/servlets "C:/Tomcat/webapps/a_domain/"
<Directory "C:/Tomcat/webapps/a_domain/">
Options Indexes +FollowSymLinks
AllowOverride None
Allow from all
</Directory>
JkMount /a_domain/servlets/* example
<Location /*/WEB-INF/*>
AllowOverride None
deny from all
</Location>
</IfModule>