logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: forward request from apache to jboss(SSL)
Author
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Sun 31 May '15 14:48    Post subject: forward request from apache to jboss(SSL) Reply with quote

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

Lodbalancer URL: https://emsprod.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)

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

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

I still want the generic name (emsprod.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.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 01 Jun '15 16:37    Post subject: Reply with quote

LB:80-->APACHE:8020 (force SSL)
LB:443-->apache:443-->Tomcat:8443


vhost on port 8020
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://emsprod.com/EPC [R,L]


vhost on port 443
ProxyRequests Off
ProxyPass /ERC http://servername:8443/EPC
ProxyPassReverse /ERC http://servername:8443/EPC
Back to top
cpkiran



Joined: 19 May 2015
Posts: 9
Location: Minneapolis,MN

PostPosted: Tue 02 Jun '15 3:07    Post subject: Reply with quote

if I use below settings , it is going to infinite loop ,
when I access load balancer link https://emsprod.com.
If I redirect to https://servername:8443/EPC, url is changing from emsprod.com to servername. Do you know what needs to be done, so that emsprod.com wont change , even after redirection.

vhost on port 8020
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://emsprod.com/EPC [R,L]
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Tue 02 Jun '15 12:11    Post subject: Reply with quote

Please post your config at pastebin.com and post here the link to it otherwise we might speak if apples and oranges at the same time.
Back to top


Reply to topic   Topic: forward request from apache to jboss(SSL) View previous topic :: View next topic
Post new topic   Forum Index -> Apache