hi, your article was great and precise. got this working. if you can also write about how to send specific urls to tomcat and serve the others from apache, that would be useful. Also if you have a rss please add it to the nosle rss index at http://nosle.com
Integrating Apache Tomcat using mod_jk for windows xp - Presentation Transcript
Configuration / Integrating Tomcat and Apache Web server on Windows using mod_jk
Version used –
1. Apache 2.2.4-win32-x86-no ssl
2. Tomcat-6.0.10
3. mod_jk-1.2.27-httpd-2.2.10.so
1) Installing Apache –
a. Download “Apache 2.2.4-win32-x86-no ssl.msi”
b. Just follow the wizard and click next button until finish
c. Run the apache at the system tray (usually it autorun)
d. Type http://localhost/ in browser
i. You will get “it works!”
ii. Ref:
2) Installing Tomcat –
a. Download “apache-tomcat-6.0.10.exe”
b. Just follow the wizard and click next button until finish
c. Make sure the port number is 8080 (you can change this later)
d. Run the Tomcat at the system tray (usually it autorun)
e. Type http://localhost:8080/ in browser
i. You will get the Apache Tomcat web page
ii. Ref:
3) Stop both servers now
4) Download jk connector “mod_jk-1.2.27-httpd-2.2.10.so”
a. Rename it to “mod_jk.so”
b. Copy “mod_jk.so” and paste in here
“YOUR_DRIVE\\Apache Software Foundation\\modules”
5) Download “workers.properties”
a. Open and add the following code at the end of the file “workers.properties”
# Define 1 real worker using ajp13
worker.list=worker1
# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009
b. Copy and paste it in here “YOUR_DRIVE\\Tomcat 6.0\\conf\\jk”
6) Configure Apache
a. Open “httpd.conf” from “YOUR_DRIVE\\Apache Software Foundation\\conf”
b. Add the following code at the end of the file “httpd.conf”
LoadModule jk_module\"YOUR_DRIVE/ApacheSoftwareFoundation/modules/mod_jk.so\"
Include \"YOUR_DRIVE/Tomcat 6.0/conf/auto/mod_jk.conf\"
7) Configure Tomcat
a. Open “server.xml” from “YOUR_DRIVE\\Tomcat 6.0\\conf”
b. Add the following inside “<Server>” element
<Listener className = \"org.apache.jk.config.ApacheConfig\"
workersConfig=\"conf/workers.properties\" mod_Jk=\"YOUR_DRIVE/Apache Software
Foundation/modules/mod_jk.so\" jkLog=\"logs/mod_jk.log\" jkDebug=\"info\" noRoot=\"false\"/>
c. Add the following inside “<Engine>” element
<Listener className = \"org.apache.jk.config.ApacheConfig\"
workersConfig=\"conf/workers.properties\" mod_Jk=\"YOUR_DRIVE/Apache Software
Foundation/modules/mod_jk.so\" jkLog=\"logs/mod_jk.log\" jkDebug=\"info\" noRoot=\"false\"/>
8) Start Tomcat
9) Start Apache
10) If the mod_jk appear under the Apache Service Monitor, that’s mean the mod_jk module is
loaded.
11) Now type “http://localhost/” it will directly lead you to apache tomcat web page.
12) That’s prove that Apache and Tomcat had integrated using mod_jk.
1 comments
Comments 1 - 1 of 1 previous next Post a comment