Hello,
I recently installed
tomcat 4.0.3 and apache2.2.0.35
and compiled the
ajp13 connector from jakarta-tomcat-connectors-4.0.2
to my http2.conf i
added :
<IfModule
!mod_jk.c>
LoadModule jk_module /opt/apache2/modules/mod_jk.so
</IfModule>
LoadModule jk_module /opt/apache2/modules/mod_jk.so
</IfModule>
JkWorkersFile
"/opt/tomcat4/conf/jk/workers.properties"
JkLogFile "/opt/tomcat4/logs/mod_jk.log"
JkLogFile "/opt/tomcat4/logs/mod_jk.log"
JkLogLevel
info
NameVirtualHost
xxx.xxx.xx.x:81
<VirtualHost xxx.xxx.xx.x:81>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /opt/tomcat4/webapps
ServerName xxx.xxx.xx.x
<VirtualHost xxx.xxx.xx.x:81>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /opt/tomcat4/webapps
ServerName xxx.xxx.xx.x
JkMount /examples ajp13
JkMount /examples/* ajp13
JkMount /examples/* ajp13
JkMount /jk ajp13
JkMount /jk/* ajp13
JkMount /jk/* ajp13
JkMount /manager
ajp13
JkMount /manager/* ajp13
JkMount /manager/* ajp13
<Directory
"/opt/tomcat4/webapps/">
Options None
AllowOverride None
order allow,deny
allow from all
</Directory>
</VirtualHost>
Options None
AllowOverride None
order allow,deny
allow from all
</Directory>
</VirtualHost>
<VirtualHost
xxx.xxx.xx.x:81>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/docs/cac
ServerName www.xxx.be
JkMount /faq ajp13
JkMount /faq/* ajp13
JkMount /xml ajp13
JkMount /xml/* ajp13
<Directory "/www/docs/xxx">
Options None
AllowOverride None
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /www/docs/cac
ServerName www.xxx.be
JkMount /faq ajp13
JkMount /faq/* ajp13
JkMount /xml ajp13
JkMount /xml/* ajp13
<Directory "/www/docs/xxx">
Options None
AllowOverride None
order allow,deny
allow from all
</Directory>
</VirtualHost>
allow from all
</Directory>
</VirtualHost>
and to my server.xml
file i added
<Server
port="8005" shutdown="SHUTDOWN" debug="0">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/opt/apache2/modules/mod_jk.so" jkDebug="error"
workersConfig="/opt/tomcat4/conf/jk/workers.properties"
jkLog="/opt/tomcat4/logs/mod_jk.log"/>
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/opt/apache2/modules/mod_jk.so" jkDebug="error"
workersConfig="/opt/tomcat4/conf/jk/workers.properties"
jkLog="/opt/tomcat4/logs/mod_jk.log"/>
<Service
name="Tomcat-Standalone">
<Connector
className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8109" minProcessors="5" maxProcessors="175"
acceptCount="10" debug="0"/>
port="8109" minProcessors="5" maxProcessors="175"
acceptCount="10" debug="0"/>
<!-- Define the top level container in our container hierarchy -->
<Engine name="Standalone" defaultHost="localhost" debug="0">
<Host name="xxx.xxx.xx.x"
debug="0" appBase="webapps" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
<Context path="" docBase="ROOT"
debug="0"/>
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
<!-- Tomcat Manager Context -->
<Context path="/manager" docBase="manager"
debug="0" privileged="true"/>
<!--
Tomcat Examples Context -->
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true"/>
<Context path="/examples" docBase="examples" debug="0"
reloadable="true" crossContext="true"/>
</Host>
<Host name="www.xxx.be" debug="0" appBase="/www/docs/xxx" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="wwwxxx_access_log." suffix=".txt"
pattern="common"/>
<Host name="www.xxx.be" debug="0" appBase="/www/docs/xxx" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="wwwxxx_access_log." suffix=".txt"
pattern="common"/>
<Logger
className="org.apache.catalina.logger.FileLogger"
directory="logs" prefix="wwwxxx_log." suffix=".txt"
timestamp="true"/>
directory="logs" prefix="wwwxxx_log." suffix=".txt"
timestamp="true"/>
<!-- Tomcat Root Context -->
<Context path="/xml" docBase="xml" debug="0"
reloadable="true" crossContext="true" />
<Context path="/faq" docBase="faq" debug="0" reloadable="true"
crossContext="true"/>
</Host>
My intent was : 2
virtual hosts, one, on the ip adres pointing to the tomcat default
webapps,
the other on the
hostname pointing to the company website ... (temporarly on port 81 since port
80 is taken by the live version)
both sites serve the
static content alright but when i try to access one of the JkMount's
www.xxx.be:81/xml or www.xxx.be:81/faq or
xxx.xxx.xx.x:81/examples for example i get the error page
:
Server error!
- Error message:
handler "jakarta-servlet" not found for: examples
- If you think this is a server error, please contact the webmaster
Error 500
Did i forget to install
something with the mod_jk build ??? did i forget to add a line in my httpd2.conf
(did not add any addhandler lines since that was not mentioned
anywhere)
thx for the
help
Stijn Ver
Eecke
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
