Tomcat Web TomcatApache Apache Software FoundationJakarta. Great article on securing your Apache server and web apps Along with using a web application firewall, its a good idea to use a network firewall like HeatShield. Apache Tomcat 7. 0. TomcatWeb. In this post, i will share on how to install GUI for network configuration on CentOS 6. The mentioned network GUI tools will edit the system configuration files. TOMCATHOMEconfserver. Add under the lt Service nameCatalina tag. Define an AJP 1. 3 Connector on port 8. Connector port8. Configure the Apache source tree for the Linux platform and customize it to suit the pattern requirements. This is done using the script Configure located in the root. AJP1. 3 redirect. Port8. 44. 3 lt Define an AJP 1. Connector on port 8. Connectorport8. AJP1. Cracking Sound In Knee When Squatting My Knee. Port8. 44. 3 And modify the Engine tag so its looks like. Engine nameCatalina default. Hostlocalhost jvm. Routejvm. 1 1lt Engine nameCatalinadefault. Hostlocalhostjvm. Routejvm. 1 Observation 1 for each tomcat instance linked to your httpd server, you need to define a different jvm. Route parameter. For example, for a second instance you could use. Engine nameCatalina default. Hostlocalhost jvm. Routejvm. 2 1lt Engine nameCatalinadefault. Hostlocalhostjvm. Routejvm. 2 Now, lets go with the httpd configuration. First, create a modjk. And populate the file with the following. Load. Module jkmodule etchttpdmodulesmodjk. Jk. Workers. File etchttpdconfworkers. Where to put jk shared memory. Jk. Shm. File varrunhttpdmodjk. Where to put jk logs. Jk. Log. File varloghttpdmodjk. Set the jk log level debugerrorinfo. Jk. Log. Level info. Select the timestamp log format. Jk. Log. Stamp. Format a b d H M S Y. Jk. Request. Log. Format w V T. Jk. Env. Var SSLCLIENTVSTART worker. Load. Module jkmoduleetchttpdmodulesmodjk. Jk. Workers. Fileetchttpdconfworkers. Where to put jk shared memory. Jk. Shm. File varrunhttpdmodjk. Where to put jk logs. Jk. Log. File varloghttpdmodjk. Set the jk log level debugerrorinfoJk. Log. Level info Select the timestamp log format. Jk. Log. Stamp. Formata b d H M S Y Jk. Request. Log. Format w V TJk. Env. Var SSLCLIENTVSTART worker. Before continuing, create the folder to store the shared memory of the module. Now, create the workers. Jk. Workers. File property on modjk. With the next content. Worker. worker. stat. Worker. typeajp. Worker. Worker. port8. 00. Workerworker. stat. Worker. typeajp. Worker. Worker. port8. 00. For every app server from tomcat to httpd youre going to have a specific worker. Dont forget to define the worker first in the worker. For example, lets assume were going to add another app from tomcat. Worker,app. 2Worker. Worker. typeajp. Worker. Worker. port8. 00. Worker. typeajp. Worker. Worker. port8. 00. Worker,app. 2Workerworker. Worker. typeajp. Worker. Worker. port8. 00. Worker. typeajp. Worker. Worker. port8. 00. Well, everything looks good now. The final step is to configure the Virtual. Host for every app on httpd. Its a good practice to maintain your Virtual. Hosts in separated files. Now, in your recently created app. Virtual. Host 8. Server. Name app. Server. Admin adminmyhost. Log. Format h l u t r s b Refereri User agenti combined. Custom. Log varloghttpdapp. Error. Log varloghttpdapp. If. Module modjk. Jk. Mount app. Worker. If. Module. lt Virtual. Host lt Virtual. Host 8. Server. Name app. Server. Admin adminmyhost. Log. Formath l u t r s b Refereri User agenticombined Custom. Logvarloghttpdapp. Error. Logvarloghttpdapp. If. Module modjk. Jk. Mountpp. 1Worker lt If. Module lt Virtual. Host We are connecting httpd with tomcat using the Jk. Mount directive in the Virtual. Host configuration. If for example youare adding a Virtual. Host for your second app use the app. Worker configured previously and so on for other apps. Final steps and conclusion. If you followed all the previous steps, you should be able to interact with your tomcat app directly from http app. Beautiful In this tutorial, we learned how to use modjk to connect different tomcat instances with the httpd web server. The procedure is straighforward but involves some compile tasks and a few configurations on each server. If you have any dobts dont hesitate to initiate a converstion in the comments sections.