Situation:
- I have a single windows 2008 server with a single public IP address.
- I have multiple domains with wildcard A records pointing to the single IP address.
- I need each domain to be hosted by a different web site. (i.e. www.domain1.com by site domain1site)
- I need domain1.com to act like www.domain1.com
- I need each site to be able to have multiple subdomains (i.e. www.domain1.com, abc.domain1.com, xyz.domain1.com)
- Not relevant yet here it goes, I plan to handle each subdomain by a different application hosted in the same site (i.e. application /xyz in domain1site)
However I found out that IIS7 does not support creating web sites with wildcard host name binding and setting it without any subdomain (i.e. domain1.com) does not work, even for www.domain1.com.
Is there a simple solution? Does any IIS Extension like Application Request Routing provide such capability?
edit: This server is hosted at Amazon EC2 and has one elastic IP (can not have more than one) associated.
edit2: It looks like one option is use multiple Amazon Elastic Load Balancers with multiple public addresses and point them to same machine (can only done using API or console, not using website). This may be useful in the future when we have more than one servers, but right now, is it really necessary?
How about nginx? Does anyone know if windows binaries are stable and fast like linux versions? If so, can nginx be configured as a reverse proxy to different websites hosted on the same machine using different ports and empty host name bindings for each site?