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

Is there any router or device that does the domain name forwarding? Currently we have only one IP address, and we have multiple domain names that point to this IP address. We would like to forward the requests to different servers based on the domain name. For example: --> --> -->

I know that I can use Apache HTTP Load Balancer module to do something similar. However, we prefer a quick and easy solution.

share|improve this question

You'd need a router that can do L7 packet inspection, and those are typically neither quick nor easy (nor cheap) to configure. I'd recommend looking into apache's mod_proxy module. It's very simple to get set up, and when used in combination with NameVirtualHost, it'll do exactly what you are looking for.

share|improve this answer

You need a proxy. Examples include Apache with mod_proxy, nginx with mod_proxy_http, and haproxy. All are "quick" and "easy", for appropriate values thereof.

If you're looking for an appliance, I don't know of any I can recommend, because the abovementioned options have been quick and easy enough for my needs, and don't have the arbitrary and impossible-to-fix limitations that the appliances I've used have had.

share|improve this answer

The other answers recommending a software proxy will be cheaper and typically easier to manage. That said, to answer your specific question, I am personally familiar with these two pieces of hardware.

Another option, if you want the simplest of all solutions, is to just pay your ISP for additional IP addresses. They are pretty cheap in comparison to dedicated/additional hardware.

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.