Sunday, July 4, 2021

Enable mod_jk module in Apache Webserver

Apache mod_jk module uses for communication between Apache webserver and tomcat application server.

Most of the real-world applications are multi-tier applications and application server always behind the web servers. It will improve application performance and better way of handle load balance between application servers.

Generally, all static content requests serve by webserver and if any dynamic request, then only it will go to application servers such a way it will improve application performance.


OS: Windows 10

Webserver: Apache2.4



Install Apache server


Download mod_jk module


Apache is providing tomcat connectors that is mod_jk from following website. Download binary version of mod_jk module. We can also build mod_jk from source. All apache modules have extension *.so. Apache Haus is also proving binary version of apache modules.

Download “” from above download page or use direct link below.

Extract “” it contains “” file.




Copy “” file to Apache24 module directory


Load Module


Create mod_jk configuration file in apache conf extra directory “C:\Apache2441\conf\extra” and add load module configurations as follows. Configuration also covered log location and its format.

LoadModule jk_module "${SRVROOT}/modules/"

<IfModule jk_module>

    JkLogFile ${SRVROOT}/logs/mod_jk.log

    JkLogStampFormat "[%b %d %Y - %H:%M:%S] "

    JkRequestLogFormat "%w %V %T"

    JkLogLevel info

    JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories



Include “mod_jk” configuration in httpd.conf

Open “httpd.conf” file in the apache conf directory and include “mod_jk” configuration as follows.


# mod_jk configurations

Include conf/extra/mod_jk.conf



Start Apache

Once enabled the mod_jk module, start/restart server. Access default page in browser.



Verify mod_jk loading

Once apache is started successfully you can see mod_jk.log file in the apache logs directory. If you open the logs we can see below message for successful loading of module or we can see error information.

mod_jk/1.2.40 initialized








  1. With these data sources, you simply input the individual's name as well as with mins you have the complete history. Criminal polkbusted documents these websites additionally offer you court documents, call for details, as well as public documents all in the same search.


Recent Posts

Recent Posts Widget

Popular Posts