Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: Controlling multiple web servers from one central apache2 |
|
Author |
|
JohannesR
Joined: 02 Sep 2016 Posts: 1 Location: Lakewood Colorado
|
Posted: Fri 02 Sep '16 18:10 Post subject: Controlling multiple web servers from one central apache2 |
|
|
I’m in a situation where I run a bunch of Linux virtual machines, most of them serve webpages (via tomcat, njinx etc.) However, I'd like find a way of controlling everything from my regular apache2 webserver (running ubuntu 14.04). At the moment I have to use for example:
Code: | oracle.example.com Port 5500 https://oracle.example.com:5500/em
mail1.example.com Port 7443 https://mail1.example.com:7443
webserver.example.com Port 80 http://webserver.example.com (or www.example.com) |
From inside (my LAN) this works after opening some ports in firewall, router etc. The problem is, to use this remotely (WEB) becomes a maintenance nightmare and mostly, ports I need to use are blocked by default on the outside (security reasons.)
I was hoping someone can give me a few pointers to configure one apache2 webserver to use rewrite rules or whatever, so I can do the above over standard ports like 80/443. I.e. looking for a way where apache can go out to the other machines and collect the “webpages” and show them to the end user as if they came straight from the apache server.
For Example, I'd like to use say
Code: | https://www.example.com/oracle
https://www.example.com/mail1
http://www.example.com |
I would appreaciate hearing your thoughts on this, ... |
|
Back to top |
|
Steffen Moderator
Joined: 15 Oct 2005 Posts: 3092 Location: Hilversum, NL, EU
|
Posted: Fri 02 Sep '16 19:29 Post subject: |
|
|
You can use Reverse Proxy in your regular Apache.
Example:
ProxyPass /oracle https://IP.Virtual machine:5500/em
ProxyPassReverse /oracle https://IP.Virtual machine:5500/em |
|
Back to top |
|
|
|
|
|
|