Jump to content

JbossApcheReverseProxy

From TetraWiki
Revision as of 10:28, 10 July 2014 by Biswajit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Aapche-Jboss Reverse Proxy using mod_proxy



Apache Changes

You need to load the mod_ssl module

<VirtualHost *:443>
ServerAdmin vijay@tetrain.com
DocumentRoot "/var/www/html"
ServerName 192.168.0.58
SSLEngine on
SSLProxyEngine on
SSLCertificateFile "/etc/pki/tls/certs/server.crt"
SSLCertificateKeyFile "/etc/pki/tls/private/server.key"
ProxyRequests On
ProxyPass / http://192.168.0.57:28080/ReachWeb/
ProxyPassReverse / http://192.168.0.57:28080/ReachWeb/
ErrorLog logs/jboss-error.log
CustomLog logs/jboss-access.log common
</VirtualHost>
:wq!

SELINUX Settings

Run either of following command to allow SELinux to permit httpd

  1. setsebool httpd_can_network_connect 1
  2. /etc/init.d/httpd restart

How to Test

Open web browser and thn open the given link https://202.169.35.37