Point Multiple Secured Domains to Different apps on Amazon Lightsail Windows Server

0

I have a domain in GoDaddy and an Amazon LightSail Windows Server 2019. I am trying to point the main domain and subdomain to two different IIS sites. For example.

  • example.com to IIS App1
  • app.example.com to IIS App2

Well, this scenario is simple enough if I point my domain and subdomain to a static IP by adding an A record. I was able to point.

but this way my connection was not secure and I wanted to add an SSL certificate.

To add the SSL in LightSail I have done the following.

  1. Created DNS Zones in LightSail and point my GoDaddy domain to it
  2. Create a static IP in LightSail
  3. Created Distribution in LightSail
  4. Created SSL Certificate and enabled Custom Domain

Now SSL is successfully installed and I am able to access my main domain but both of the domains point to IIS APP1

How can I point https://app.example.com to IIS App2 using Amazon LightSail Distribution?

Please note that in IIS APP2 I have added binding for app.example.com for port 80 and 443 and Require Server Name Indication is Checked.

1개 답변
0

Hey folks,

Check all steps described in the post below. Probably, it can help you.

https://aws.amazon.com/premiumsupport/knowledge-center/multiple-public-website-ec2-iis/

Regards,

profile pictureAWS
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠