{"id":7,"date":"2008-02-13T01:37:26","date_gmt":"2008-02-12T20:07:26","guid":{"rendered":"http:\/\/www.tothenew.com\/blog\/?p=7"},"modified":"2010-06-09T16:03:20","modified_gmt":"2010-06-09T10:33:20","slug":"apache-tomcat-integration-on-ubuntu-server","status":"publish","type":"post","link":"https:\/\/www.tothenew.com\/blog\/apache-tomcat-integration-on-ubuntu-server\/","title":{"rendered":"Apache-Tomcat integration on Ubuntu server"},"content":{"rendered":"<p>Follow the steps mentioned below to integrate Apache with Tomcat on an Ubuntu system. The steps assume that Apache and Tomcat are already installed and working fine independently.<\/p>\n<ul>\n<li>Install Apache module for tomcat<\/li>\n<\/ul>\n<blockquote><p><code>sudo apt-get install libapache2-mod-jk<\/code><\/p><\/blockquote>\n<ul>\n<li>Create a file by the name &#8220;worker.properties&#8221; in \/etc\/apache2 directory. Sample worker.properties file below<\/li>\n<\/ul>\n<blockquote><p><code>workers.tomcat_home=\/opt\/servers\/tomcat5.5<br \/>\nworkers.java_home=\/opt\/java\/jdk1.5<br \/>\nps=\/<br \/>\nworker.list=worker1<br \/>\nworker.default.port=8009<br \/>\nworker.default.host=localhost<br \/>\nworker.default.type=ajp13<br \/>\nworker.default.lbfactor=1<br \/>\n<\/code><\/p><\/blockquote>\n<ul>\n<li>Add the following line to your site configuration file (\/etc\/apache2\/sites-available\/dellServer)<\/li>\n<\/ul>\n<blockquote><p><code>jkMount \/* worker1<br \/>\n<\/code><\/p><\/blockquote>\n<ul>\n<li>Add the following lines to the end of your \/etc\/apache2\/apache2.conf file<\/li>\n<\/ul>\n<blockquote><p><code>LoadModule jk_module \/usr\/lib\/apache2\/modules\/mod_jk.so<br \/>\n# Where to find workers.properties<br \/>\nJkWorkersFile \/etc\/apache2\/workers.properties<br \/>\n# Where to put jk logs<br \/>\nJkLogFile \/tmp\/mod_jk.log<br \/>\n# Set the jk log level [debug\/error\/info]<br \/>\nJkLogLevel info<br \/>\n# Select the log format<br \/>\nJkLogStampFormat \"[%a %b %d %H:%M:%S %Y] \"<br \/>\n# JkOptions indicate to send SSL KEY SIZE,<br \/>\nJkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories<br \/>\n# JkRequestLogFormat set the request format<br \/>\nJkRequestLogFormat \"%w %V %T\"<br \/>\n<\/code><\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Follow the steps mentioned below to integrate Apache with Tomcat on an Ubuntu system. The steps assume that Apache and Tomcat are already installed and working fine independently. Install Apache module for tomcat sudo apt-get install libapache2-mod-jk Create a file by the name &#8220;worker.properties&#8221; in \/etc\/apache2 directory. Sample worker.properties file below workers.tomcat_home=\/opt\/servers\/tomcat5.5 workers.java_home=\/opt\/java\/jdk1.5 ps=\/ worker.list=worker1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":9},"categories":[1],"tags":[18,17],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/7"}],"collection":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tothenew.com\/blog\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}