I will first try to describe the problem I have.
Let's say I have two different http servers running on two different ports behind firewall on my local machine:
SERVER1: http://localhost:8001 SERVER2: http://localhost:8002
Now what I want to do is to expose those two trough one port. Let's say trough port 80 like this:
The requirement is also that headers are preserved and that client and end servers will not be aware of proxy in between. So if Digest authentication is present on end servers I expect that it will continue to work like there is no proxy in between.
I guess that this could be achieved with transparent reverse proxy but as this is not my field of expertise I am really not sure whether I am looking at the right direction.
So the questions are:
- What is proper way to achieve this?
- Which solutions would make this possible?
- Is there any other way to achieve same effect like described above?