Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have 1 external IP address, but 2 web-severs (one is IIS and another is Apache) in network that host around 15 domains.

I need a solution that would check all port 80 requests, detect which domain this request came from and redirect/reroute this to appropriate IP.

Therefore, all web requests must be re-routed to appropriate servers.

Is there anything like this available?

share|improve this question
up vote 2 down vote accepted

This is pretty convoluted, but perhaps it will work: - put one server on port 80 and one on port 82 - create virtual sites based on host headers on both servers - On the port 80 server, create rewrite rules to rewrite the requests for the port 82 server to use port 82

So say is on the port 80 server and is on the port 82 server

When a request for comes in, the port 80 server would rewrite to

Finally, you would need to set a port forwarder on your router to forward requsts on Port 82 to the internal IP of server 2.

share|improve this answer
probably you don't need different ports as your apache and iis are probably on a different machines. – Alex Apr 18 '12 at 8:22

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.