Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_jk

Status
Not open for further replies.

filmgall

Programmer
Oct 19, 2009
7
US
I have a problem with using both Apache 2.2.3 and Tomcat 5.5.23 using mod_jk.
Basically when I type I want it to go to where shop is my webapp and it's in the shop dir under /usr/lib/apache-tomcat-5.5.23/webapps.
I tested that tomcat is working and brings up the shop web app.
Here's what I've done:
-Downloaded and put mod_jk.so into /usr/lib/httpd/modules
-Created mod_jk.conf in /etc/httpd/conf.d with the following lines:
Code:
LoadModule jk_module modules/mod_jk.so   
JkWorkersFile "/etc/httpd/conf/workers.properties"  
JkLogFile "/var/log/httpd/mod_jk.log"  
JkLogLevel info
-Created workers.properties in /etc/httpd/conf with the following lines:
Code:
worker.list=tomcat   
worker.tomcat.host=localhost   
worker.tomcat.port=8009  
worker.tomcat.type=ajp13
-Add virtual host in /etc/httpd/conf/httpd.conf as such:
Code:
<VirtualHost 192.168.0.2:8088>   
    ServerName mywebsite.com   
    ServerAlias [URL unfurl="true"]www.mywebsite.com[/URL]   
    DocumentRoot /var/[URL unfurl="true"]www/vhosts/mywebsite.com[/URL]   
    JKMount /* tomcat   
</VirtualHost>
192.168.0.2 is the internal ip for the website.
But I only see the Apache default after I restart both Apache and Tomcat and then type So what did I do wrong or miss?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top