Jump to content

JbossApcheReverseProxy

From TetraWiki


Aapche-Jboss Reverse Proxy using mod_proxy[edit]



Apache Changes[edit]

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[edit]

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[edit]

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