Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I think this question is not first but all what I see don't useful for me. Ok, for example I have my network behind NAT where I want setup two http servers on the different hosts. How I can perform routing? How I understand I can forward all traffic which came to 80 port on service which can handle request forwarding by domain's name, but which service can do this?

p.s And yes, I dont wanna vpn )

share|improve this question

closed as not a real question by EEAA, kce, mdpc, Ward, Khaled Jan 17 '13 at 7:46

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

add comment

1 Answer 1

up vote 1 down vote accepted

For HTTP you need a reverse HTTP proxy which would parse incoming HTTP requests and pass them to different backend servers according to the Host header (and maybe even path — so you can serve http://example.com/foo/ and http://example.com/bar/ from different backend servers if you need).

You can use either a specialized proxy software which supports reverse proxy operation (Squid, Varnish, …) or an HTTP server with reverse proxying capabilities (nginx, Apache, …). Most of them can also perform other functions like caching and load balancing in addition to simple proxying.

share|improve this answer
add comment

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