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: Multiple Backend Ports for one instance
Author
JackLevin



Joined: 16 Jun 2014
Posts: 2

PostPosted: Mon 16 Jun '14 12:11    Post subject: Multiple Backend Ports for one instance Reply with quote

Hi,

I inherited an Apache HTTP instance from a colleague. That's why I'm not deep into that stuff. My current scenario is the following: We are running several backend instances which are published to the internet via Apache HTTP Server which is configured as Reverse Proxy (RP). In the past there was only one port and one protocol to handle by the Apache HTTP (RP).

Now I have the following need. There has to be published a Web Service from one instance using two Ports with two protocols (HTTP and HTTPs). I'm not sure how to solve that need.

Does anyone have an idea for me? A solution I tried already was to change and add the variable DEF_BACKEND_PORT to DEF_BACKEND_PORT_1 and DEF_BACKEND_PORT_2 but it didn't worked. I hope it's not a real newbie question. Maybe I also don't get the real mening of an Apache HTTP Server instance. But didn't find a single thread or HowTo on the internet regarding this topic.

BR
Back to top
James Blond
Moderator


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

PostPosted: Mon 16 Jun '14 13:56    Post subject: Reply with quote

In your config there must be something with ProxyPass. Please post that part of your config (if long use pastebin com).

It would be also great to know your apache version.
Back to top
JackLevin



Joined: 16 Jun 2014
Posts: 2

PostPosted: Mon 16 Jun '14 14:23    Post subject: Reply with quote

The Apache Version I'm running is 2.2.25 and the part you want to know looks like:
Quote:

# Default redirect
ReWriteRule ^/?$ https://DEF_SERVER_NAME/ [R=307,NC,L]

# Disallow Administrative Applications

# Allow Valid Applications
ProxyPass /mobile/ http://DEF_BACKEND_HOST:DEF_BACKEND_PORT_1/mobile/
ProxyPass /mobile/ http://DEF_BACKEND_HOST:DEF_BACKEND_PORT_2/mobile/

# Allow ProxyPassReverse
ProxyPassReverse / http://DEF_BACKEND_HOST:DEF_BACKEND_PORT_1/
ProxyPassReverse / http://DEF_BACKEND_HOST:DEF_BACKEND_PORT_2/


As written, by default we only use DEF_BACKEND_PORT not DEF_BACKEND_PORT_#.

BR
Back to top


Reply to topic   Topic: Multiple Backend Ports for one instance View previous topic :: View next topic
Post new topic   Forum Index -> Apache