Forum Moderators: phranque

Message Too Old, No Replies

forward request from apache to jboss(SSL)

         

cpkiran

12:57 pm on May 31, 2015 (gmt 0)

10+ Year Member



I have follwing components configured.
LoadBalancer, Apache and SSL enabled JBoss.

Lodbalancer URL: https://example.com
Apache URL : http://servername:8020/EPC
Jboss URL(SSL) : https://servername:8443/EPC

When the request comes to Loadbalancer, it is forwarding the request fine to apache.
But from apache I am not able to forward the request to Jboss(SSL).
If SSL is not enabled on JBoss , I am able to forward request easily to Jboss using ajp protocol.

I am using below settings on httpd.conf file of apache but url is getting changed to https://servername:8443/EPC from https://example.com

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://servername:8443/EPC [R,L]

I still want the generic name (example.com) to be displayed on url instead of server name.
Can any one help how I can successfully forward the request to Jboss when I access LB url.

[edited by: phranque at 10:45 am (utc) on Jun 2, 2015]
[edit reason] unlinked URLs [/edit]

phranque

11:00 am on Jun 2, 2015 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, cpkiran!


url is getting changed to https://servername:8443/EPC from https://example.com

RewriteRule (.*) https://servername:8443/EPC [R,L]

the [R] flag defaults to a 302 status code which will result in the browser requesting the specified hostname.
i'm guessing you actually want to use mod_proxy:
https://httpd.apache.org/docs/current/mod/mod_proxy.html [httpd.apache.org]