Link to home
Start Free TrialLog in
Avatar of Mickail Ranapurwala
Mickail RanapurwalaFlag for India

asked on

How to host multiple SSL websites on AWS EC2 Windows Instance

We want to host multiple SSL website on Amazon AWS EC2 windows instance.

How can we do that?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mickail Ranapurwala

ASKER

Scenario:
Number of EC2 windows instance                    1
Instance Named                                           myserver
web server                                                ms windows 2008 R2 / IIS 7.5
Numbwee od websites                                    2
Website URL      1                                          www.website1.com
Website URL 2008                                    www.website2.com

Number of NIC                                          2

Number of Private IPs                              2

Private IP  1                                       10.10.10.1  
Private IP  2                                        10.10.10.2

Numbwe of Public IP[Elastic IP]                  2

Public IP[Elastic IP] 1                            x.x.x.1
Public IP[Elastic IP] 2                            x.x.x.2

Public IP [Elastic IP] association            

Public IP[Elastic IP] 1 x.x.x.1                  Associated to NIC1
Public IP[Elastic IP] 1 x.x.x.2                  Associated to NIC2



www.website1.com  Binding in IIS             10.10.10.1   - NIC 1
www.website1.com  Binding in IIS             10.10.10.1   - NIC 1


Number of Load Balancer [ELB]                   2

Load Balancer      ELB  - 1                        lb1.aws.com    SSL Enabled
Load Balancer      ELB  - 2                        lb2.aws.com    SSL Enabled

CNAME  for  www.website1.com                   lb1.aws.com
CNAME  for  www.website2.com                   lb2.aws.com

Instance Regisration of lb1.aws.com            myserver
Instance Regisration of lb2.aws.com            myserver

while accessing www.website1.com over HTTPS it is working fine.
But while accessing www.website2.com over HTTPS it is serving content of www.website1.com but we can see browser URL is www.website2.com only.

Any resolution with cloudfront or any other technology in IIS 7.5
Also, like David Johnson mentioned, if you have multi-homing on your server, you might want to assign the listening IP for each site as well, instead of the "All Assigned" in the screenshot above.
is there any way we can implement SNI in windows 2008 R2 /SNI ?
any update?
As far as I know SNI is not support on any IIS less than 8.0.

You can see more about this here:
http://blogs.msdn.com/b/kaushal/archive/2012/09/04/server-name-indication-sni-in-iis-8-windows-server-2012.aspx