Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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 www.site1.com is on the port 80 server and www.site2.com is on the port 82 server

When a request for site2.com comes in, the port 80 server would rewrite to www.site2.com:82.

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
1  
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

 
discard

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.