Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

This is my current DNS table

www.mydomain.com    A    xxx.xxx.xxx.1
*.mydomain.com      A    xxx.xxx.xxx.2

and inside IIS I have two sites:

  • one with the bindings:
    • http:*:80:xxx.xxx.xxx.1
    • https:*:443:xxx.xxx.xxx.1
  • another with the bindings:
    • http:*:80:xxx.xxx.xxx.2
    • https:*:443:xxx.xxx.xxx.2

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

1 Answer 1

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: brntpb.st/Sy7QQv –  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

 
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.