Hardware / Software:
1 Netgear wireless router running OpenWRT version 10.03.1, connected to internet.
3 different boxes running web services, 1 Windows Home server box, 1 linux and 1 Openindiana, connected to the wireless router through the switch-ports on the wireless router.
The OpenWRT box has the internal IP if 10.1.1.1
The OpenWRT box also has a small internal website for the web-gui for OpenWRT running on lighttpd on port 80.
Scenario / Goal:
Keep the small internal website with the web-gui running on port 80 accessible only from the inside of the OpenWRT box.
And "redirect" Multiple domain names that are all pointing to the same 1 dynamic IP allocated to my wireless router, to different internal servers on the inside of the OpenWRT box, while all of them are accessible on standard port 80
example.homeserver.com
example.dnsalias.org
www.example.com
www.example.net
What i would like to be able to do is a simple configuration that inspects the http header and sends the http-request to the correct server based on something like the following.(Either all domain-names specified, or some specified and all others sent to the same place to be handled with vhost on that server.
example.homeserver.com --> 10.1.1.10 (IIS)
example.dnsalias.org --> 10.1.1.20 (Apache)
www.example.com--> 10.1.1.30 (Apache set up with vhost)
www.example.net--> 10.1.1.30 (Apache set up with vhost)
or
example.homeserver.com --> 10.1.1.10 (IIS)
example.dnsalias.org --> 10.1.1.20 (Apache)
* --> 10.1.1.30 (Apache set up with vhost)
So, i guess the question is, is this even possible to accomplish ? And what would be the easiest way to accomplish something like this ?
I'm guessing this would probably involve some sort of reverse-proxy setup or something similiar ?
So, anyone done this before and can give me some good ideas, or links to examples/documentation that explains how to do this ?