{"id":2786,"date":"2017-12-09T12:42:56","date_gmt":"2017-12-09T12:42:56","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=2786"},"modified":"2020-01-09T06:54:06","modified_gmt":"2020-01-09T06:54:06","slug":"integration-of-jboss-and-apache2","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/integration-of-jboss-and-apache2\/","title":{"rendered":"Integration of Jboss and Apache2"},"content":{"rendered":"<p><strong>rajeshkumar created the topic: Integration of Jboss and Apache2<\/strong><\/p>\n<p>Hi,<\/p>\n<p>My Application(.ear) is running in Jboss with any issues on 7001 port. There are following requirement as such with me. Task 1. Integrate Jboss with Apache2 so all the request should be coming from Apache Instead of jboss<\/p>\n<p>Task 2. Implement SSLwith apache2 so it should open with https instead of http.<\/p>\n<p>For task 1, I have followed carefully <a href=\"http:\/\/community.jboss.org\/wiki\/UsingModjk12WithJBoss\" target=\"_blank\" rel=\"noopener\">community.jboss.org\/wiki\/UsingModjk12WithJBoss<\/a> with some issues. 1. Application is getting up and running without any issues but logout has some issues. 2. I want to stop JBOSS access point but not getting any clue<\/p>\n<p>For task 2 Once this is up and running, i will have to implement SSL with Apache so it should only get open with HTTPS instead of http. any help on this front as well..any links or Reference.<\/p>\n<p>Reagrds, Raj, Build and Release Engineer, <a href=\"http:\/\/scmGalaxy.com\" target=\"_blank\" rel=\"noopener\">scmGalaxy.com<\/a><\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: Re:Integration of Jboss and Apache2<\/strong><\/p>\n<p>Jboss along with Apache 2 setup is working fine but I am getting issues with SSL setup with apache..<\/p>\n<p>I followed the <a href=\"http:\/\/tomcat.apache.org\/tomcat-3.3-doc\/tomcat-ssl-howto.html\" target=\"_blank\" rel=\"noopener\">tomcat.apache.org\/tomcat-3.3-doc\/tomcat-ssl-howto.html <\/a><br \/>\nbut without success?<\/p>\n<p>Any urgent help?<br \/>\nRegards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n<p><strong>rajeshkumar replied the topic: Re:Integration of Jboss and Apache2<\/strong><\/p>\n<p>Hi,<\/p>\n<p>With continuation of post, www.scmgalaxy.com\/forum\/55-jboss\/317-int&#8230;oss-and-apache2.html<\/p>\n<p>Integration of Jboss with Apache2 which i achieved Successful but got stuck in SSL Setup with Apache2. One point need to be note down is that I am using module_jk.<\/p>\n<p>Any help on this. I could get first page with https URL but once login, its redirecting to http URL.<\/p>\n<p>Any Solution?<\/p>\n<p>my httpd.conf file<br \/>\n[code language=&#8221;css&#8221;]<\/p>\n<p>[\/code]<\/p>\n<p>[code language=&#8221;css&#8221;]<br \/>\nMy mod-jk.conf file<br \/>\n# Load mod_jk module<br \/>\n# Specify the filename of the mod_jk lib<br \/>\nLoadModule jk_module modules\/mod_jk.so<\/p>\n<p># Where to find workers.properties<br \/>\nJkWorkersFile conf\/workers.properties<\/p>\n<p># Where to put jk logs<br \/>\nJkLogFile logs\/mod_jk.log<\/p>\n<p># Set the jk log level [debug\/error\/info]<br \/>\nJkLogLevel info<\/p>\n<p># Select the log format<br \/>\nJkLogStampFormat &#8220;[%a %b %d %H:%M:%S %Y]&#8221;<\/p>\n<p># JkOptions indicates to send SSK KEY SIZE<br \/>\n# Notes:<br \/>\n# 1) Changed from +ForwardURICompat.<br \/>\n# 2) For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)<br \/>\n# See http:\/\/tomcat.apache.org\/security-jk.html<br \/>\nJkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories<\/p>\n<p># JkRequestLogFormat<br \/>\nJkRequestLogFormat &#8220;%w %V %T&#8221;<\/p>\n<p># Mount your applications<br \/>\nJkMount \/__application__\/* loadbalancer<br \/>\n# Let Apache serve the images<br \/>\nJkUnMount \/__application__\/images\/* loadbalancer<\/p>\n<p># You can use external file for mount points.<br \/>\n# It will be checked for updates each 60 seconds.<br \/>\n# The format of the file is: \/url=worker<br \/>\n# \/examples\/*=loadbalancer<br \/>\nJkMountFile conf\/uriworkermap.properties<\/p>\n<p># Add shared memory.<br \/>\n# This directive is present with 1.2.10 and<br \/>\n# later versions of mod_jk, and is needed for<br \/>\n# for load balancing to work properly<br \/>\n## Note: Replaced JkShmFile logs\/jk.shm due to SELinux issues. Refer to<br \/>\n# https:\/\/bugzilla.redhat.com\/bugzilla\/show_bug.cgi?id=225452<br \/>\nJkShmFile run\/jk.shm<\/p>\n<p># Add jkstatus for managing runtime data<br \/>\n&lt;Location \/jkstatus&gt;<br \/>\nJkMount status<br \/>\nOrder deny,allow<br \/>\nDeny from all<br \/>\nAllow from 127.0.0.1<br \/>\n&lt;\/Location&gt;<\/p>\n<p># Added by Rajesh<br \/>\n#=================================================<br \/>\n&lt;VirtualHost 10.4.51.29:80&gt;<br \/>\nServerName 10.4.51.29<br \/>\nJkMount \/elance loadbalancer<br \/>\nJkMount \/elance\/* loadbalancer<\/p>\n<p>&lt;\/VirtualHost&gt;<br \/>\n[\/code]<\/p>\n<p>My httpd-ssl.conf file<\/p>\n<p>[code language=&#8221;css&#8221;]<\/p>\n<p>[\/code]<\/p>\n<p>Regards,<br \/>\nRajesh Kumar<br \/>\nTwitt me @ <a href=\"http:\/\/twitter.com\/RajeshKumarIn\" target=\"_blank\" rel=\"noopener\">twitter.com\/RajeshKumarIn<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>rajeshkumar created the topic: Integration of Jboss and Apache2 Hi, My Application(.ear) is running in Jboss with any issues on 7001 port. There are following requirement as such with me&#8230;. <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[588,586],"class_list":["post-2786","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-integration","tag-jboss"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2786","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2786"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2786\/revisions"}],"predecessor-version":[{"id":8510,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/2786\/revisions\/8510"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2786"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2786"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2786"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}