Apache/Tomcat/Mod_JK
Hi Everyone,
I'll try to explain this as best I can... I'm running a RedHat 9.0 server, with Apache and Tomcat installed. I *believe* I've successfully installed mod_jk. I built my mod_jk.so from source. I then took that source file and put it in /etc/httpd/modules (it has executable rights). I've modified apache and restarted it with no errors. The problem I'm running into is getting my httpd.conf file to correctly send certain directories to Tomcat. Here is some excerpts from my files: httpd.conf --------------------------- LoadModule jk_module modules/mod_jk.so JkWorkersFile "/jakarta-tomcat-4.1.31/conf/worker.properties" JkLogFile "/var/log/mod_jk.log" JkLogLevel info JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" JkMount /usasweb worker1 JkMount /usasweb/* worker1 -------------------------------- worker.properties --------------------- worker.list=worker1 worker.worker1.host=localhost worker.worker1.port=8009 worker.worker1.type=ajp13 ------------------------------- So, if I point my browser to http://servername/usasweb I get an error from Apache that says Object Not Found. Can anyone please help me? Thanks! -Mike P.S. How much of a performance hit and I taking if I don't use the mod_jk and just go directly to tomcat for everything? |
According to my installation of tomcat (4.1.31) along with apache (1.3.34) you should:
1. Include mod_jk.conf in your httpd.conf: Code:
Include /path/to/tomcat/conf/auto/mod_jk.conf Code:
worker.list=ajp13 Code:
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig" modJk="/path/to/mod_jk.so" /> |
All times are GMT -5. The time now is 09:32 AM. |