What does your workers.properties file look like?
In my environment, all but the JkMount/JkUnmount directives went into
the global httpd.conf. Then I put the mount/unmount directives in the
virtual hosts. Also I don't do anything with SetHandler.
--David
Robert Koberg wrote:
Hi,
I am trying to get httpd and tomcat to work together and not having much
luck.
Redhat ES 5
jdk1.6.0_07
tomcat 6.0.16
tomcat-connectors-1.2.26-src (built on the machine)
tomcat-native-1.1.14-src (built on the machine)
If I put mod_jk directives inside a (httpd.conf) virtual host I can't
seem to get a connection to tomcat from httpd (get an apache 404 when
trying the webapp). The only way I have been able to get something to
work is have global httpd.conf directives like below. Basically, with
the setup below, I do get tomcat to serve the 'qa' site's *.vm pages but
it seems to be looking at the virtual host above for its static files. I
could only get 'SetHandler' to work, not the JkMount (in a vhost or
globally). I have also left in some directives that did not work for me
(commented out).
Any ideas or pointers?
#see below
Include
/home/app/tomcat/conf/jk/mod_jk.confhttp://thegreatsmokeymountainsparkway.com/_attracti/gatlappl.htm
<LocationMatch '.*WEB-INF.*'>
AllowOverride None
deny from all
</LocationMatch>
<VirtualHost *>
DocumentRoot "/home/someuser/wwwapps/ROOT"
ServerName www.domain.org
ServerAlias domain.org
<Directory "/home/someuser/wwwapps/ROOT">
allow from all
Options +Indexes
</Directory>
#SetEnvIf Request_URI "/*" no-jk
</VirtualHost>
<VirtualHost *>
DocumentRoot /home/someuser/qaapps/ROOT
ServerName qa.domain.org
<Directory "/home/someuser/qaapps/ROOT">
allow from all
Options +Indexes
</Directory>
</VirtualHost>
JkAutoAlias /home/someuser/qaapps
#JkAutoAlias /home/someuser/wwwapps
#JkMount /* ajp13
#JkMount /members/* ajp13
#JkMount /*.vm ajp13
#JkMount /*.jsp ajp13
#JkMount /members/*.vm ajp13
#JkMount /members/admin/*.jsp ajp13
<Location /members/>
SetHandler jakarta-servlet
SetEnv JK_WORKER_NAME ajp13
# SetEnvIf REQUEST_URI ^/members/([^/]*)/ JK_WORKER_NAME=ajp13
# SetEnvIf REQUEST_URI ^/members/([^/]*\.vm)/ JK_WORKER_NAME=ajp13
# SetEnvIf REQUEST_URI ^/members/([^/]*\.jsp)/ JK_WORKER_NAME=ajp13
</Location>
JkUnMount /*.html ajp13
JkUnMount /*.php ajp13
JkUnMount /*.gif ajp13
JkUnMount /*.jpg ajp13
JkUnMount /*.jpeg ajp13
JkUnMount /*.css ajp13
JkUnMount /*.ico ajp13
JkUnMount /*.pdf ajp13
JkUnMount /*.swf ajp13
JkUnMount /*.png ajp13
JkUnMount /*.txt ajp13
-----------------------
#mod_jk.conf
LoadModule jk_module "/usr/lib/httpd/modules/mod_jk.so"
JkWorkersFile "/home/someuser/tomcat/conf/jk/workers.properties"
JkLogFile "/home/someuser/tomcat/logs/qa_mod_jk.log"
JkLogLevel debug
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]