Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to setup an internal box that all all external traffic gets forwarded to, and then onto the relevant boxes in-house.

I would like to know the following:

If I have two servers in-house, and can a reverse proxy forward the correct request on the same IP based on what was requested? For example, the request for goes to servera.local and goes to serverb.local?

Also, I'd like to build a linux based proxy, any recommendations?

share|improve this question

If these are mail servers and you're talking about incoming email then what you want is a MTA (eg exim, postfix) that accepts email for the domains and forwards it to the correct internal host. This is a basic mailhub setup.

If you're talking about users using imap, pop or smtp (or just web traffic) then have a look at NginX.

share|improve this answer
+1 for nginx - I added the link. – tomjedrz Sep 4 '10 at 19:31

If the incoming requests are http protocol, then perhaps Apache virtual hosts in conjunction with mod_proxy ( ) may do what you want.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.