Saturday, 14 December 2013

Configure Apache Web server for redirection to Tomcat in Windows

1> create a an workers.properties file with following content

# Define a worker named 'worker1' (more workers can be added as comma separated values)

  worker.list=worker1

  # Set worker properties

  worker.worker1.type=ajp13

  worker.worker1.host=localhost

  worker.worker1.port=8009
2> download apache web server installer  "download httpd-2.0.65-win32-x86-openssl-0.9.8y.msi "
from http://apache.osuosl.org/httpd/binaries/win32/ custom_install
 Or you can install manually manual_install_apache.

3> install it as shown in link

4>dowload apache tomcat connector :
tomcat-connectors-1.2.37-windows-i386-httpd-2.0.x

5>copy mod_jk.so file in module folder of apaches home folder

6>Modify httpd.config file with following content

<pre class="brush: csharp">

# Load mod_jk module
# Update this path to match your modules location
LoadModule    jk_module  modules/mod_jk.so

# Where to find workers.properties
# Update this path to match your conf directory location (put workers.properties next to     httpd.conf)
JkWorkersFile conf/workers.properties

# Where to put jk logs
# Update this path to match your logs directory location (put mod_jk.log next to access_log)
# This can be commented out, to disable logging
JkLogFile     logs/mod_jk.log

# Set the jk log level [debug/error/info]
# Only matters if JkLogFile is being used.
JkLogLevel    info

# Select the timestamp log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "

# Send everything for context /examples to worker named worker1 (ajp13)
# /examples would most likely be the name of your WebApp (c:/tomcat/webapps/example)
JkMount  /MyMail/* worker1

</pre>

http://serverfault.com/questions/256195/apache-2-2-17-tomcat-7-on-windows-server
http://www.apachelounge.com/viewtopic.php?p=20085
http://apache.osuosl.org/httpd/binaries/win32/ >>  download httpd-2.0.65-win32-x86-openssl-0.9.8y.msi

http://www.premiumwebbloghosting.com/2012/03/how-to-install-apache-server-on-windows.html

http://www.serverwatch.com/tutorials/article.php/10825_2203891_1
less imp

http://www.apachelounge.com/download/win64/

No comments:

Post a Comment