Domain – ny router / device that does the domain forwarding

domainforwardingrouter

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:

A.com –> 192.168.1.100

B.com –> 192.168.1.101

C.com –> 192.168.1.102

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

Best Answer

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.