Server Fault is a question and answer site for system and network administrators. 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

This is my current DNS table    A
*      A

and inside IIS I have two sites:

  • one with the bindings:
    • http:*
    • https:*
  • another with the bindings:
    • http:*
    • https:*

There is a single, wildcard SSL bound to both sites.

The objective is to have a single site responding to the www subdomain, and another site that response to all other subdomains.

How do I achieve this in EC2 with and ELB, when I can only address the LB by hostname, and therefore CNAME?

Can I do this: (is it the best way?)

Have two LBs, one for www and one for * then map their internal routes to different ports for the different sites, and CNAME the www and * to the different LBs?

share|improve this question
up vote 1 down vote accepted

You will have to utilize Amazon's Route 53 service to load balance by IPs. They essentially host DNS records for you.

share|improve this answer
ah that sounds better, will investigate. ta – Andrew Bullock Sep 10 '12 at 17:26
didnt like the idea of routing by cookies anyway – Andrew Bullock Sep 10 '12 at 17:28
hmmm... any tips? cant seem to grok how to do this – Andrew Bullock Sep 10 '12 at 17:33
The way I understand it is that you setup DNS Aliases in Route 53. You can then point aliases to ELB instances. Check this FAQ out: – Brent Pabst Sep 10 '12 at 17:58
ok thanks, Aliases look like they solve my DNS problem, but how do I share the certificate across different IIS sites? they need a unique ip/port. – Andrew Bullock Sep 10 '12 at 18:04

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.