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: Proxypass for different server with same context
Author
Jothivignesh



Joined: 25 Apr 2018
Posts: 1
Location: India

PostPosted: Wed 25 Apr '18 11:06    Post subject: Proxypass for different server with same context Reply with quote

Hi,

I have installed apache in a server(lets say hostname1)

and added proxypass in httpd.conf file like

ProxyPass "/qa170901" "http://hostname2:9090"
ProxyPass "/patch1801" "http://hostname2:8080"

Proxypass "/qa171201" "http://hostname3:8080"
Proxypass "/patch171101" "http://hostname3:9090"

It is redirecting upto tomcat (8080 & 9090 is tomcat port) properly, but when i try to include the context, the problem begins.

I need something like , when i enter the url
https://hostname1/qa170901 then it will go to http://hostname2:9090/appc where appc is my context

and
https://hostname1/qa171201 then it will go to http://hostname3:8080/appc
likewise for other instances too.

is it possible to do lik this?
Back to top
James Blond
Moderator


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

PostPosted: Wed 25 Apr '18 16:09    Post subject: Reply with quote

Look for ProxyReversePass and mod_proxy_html
Back to top


Reply to topic   Topic: Proxypass for different server with same context View previous topic :: View next topic
Post new topic   Forum Index -> Apache