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:
-Created workers.properties in /etc/httpd/conf with the following lines:
-Add virtual host in /etc/httpd/conf/httpd.conf as such:
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?
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
Code:
worker.list=tomcat
worker.tomcat.host=localhost
worker.tomcat.port=8009
worker.tomcat.type=ajp13
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>
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?