Skip to content

Instantly share code, notes, and snippets.

@dduvnjak
Created January 27, 2014 01:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dduvnjak/8641621 to your computer and use it in GitHub Desktop.
Save dduvnjak/8641621 to your computer and use it in GitHub Desktop.
Set up mod_jk with Apache on Windows

Download and install Apache from:
http://www.apache.org/dist/httpd/binaries/win32/httpd-2.2.25-win32-x86-openssl-0.9.8y.msi

download mod_jk for windows: http://apache.mirrors.pair.com//tomcat/tomcat-connectors/jk/binaries/windows/tomcat-connectors-1.2.37-windows-i386-httpd-2.2.x.zip

extract and put it in the modules folder:
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\modules

Add this to the httpd.conf file (located at C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf)

LoadModule jk_module modules/mod_jk.so

JkWorkersFile conf/workers.properties
JkLogFile logs/jk.log 
JkLogLevel info

<Location /manager>
  Order deny,allow
  Deny from all
</Location>
<Location /status*>
  Order deny,allow
  Deny from all
</Location>
JkMount /* default

Create a new file workers.properties at C:\Program Files (x86)\Apache Software Foundation\Apache2.2\conf with these contents:

worker.list=default

worker.default.type=ajp13
worker.default.host=127.0.0.1
worker.default.port=8009

Restart the Apache service.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment