Omnia shows you how to
host a public website on
an EC2 Windows instance with IIS

omnia

I want to publicly host my website using IIS on an Amazon EC2 Windows instance. How can I do this?

You can run your EC2 instance as a web server, host the web application on Internet Information Services (IIS), and access it on the Internet.

Follow these instructions to configure IIS, your website, and assign a static public IP address to your host name.

Configure your website and confirm that you can access it locally and externally

  • On your Windows Server instance, open IIS Manager, expand Sites, choose Default Web Site, choose Explore, and then choose the website .html home page to ensure that you can access the website locally.
  • Enter your Public IP address in a browser and ensure that you can access the website externally.

To access your website from a host name using a static public Elastic IP address:
Note: When you start and stop an EC2 instance, the public IP address changes.

  • On the EC2 console, in the navigation pane, choose Elastic IPs, then choose Allocate new address, Allocate, and then choose Close.
  • For Actions, choose Associate Address, select the Instance drop down menu, choose the Instance ID, choose Associate, and then choose Close.

Assign the IP to your domain name in Route 53

  • On the Amazon Route 53 console, in the navigation pane, choose Hosted zones, choose the Domain Name, and then choose Create Record Set or edit one of the existing A records.
  • In the Value field, enter your Public IP address and then choose Save Record Set.

You should now be able to browse to your website using your host name.

Note: You can also host multiple websites on the same IIS server. For additional information, see How do I host multiple public websites using IIS on the same Windows Server EC2 instance?


Did this page help you? Yes | No

Back to the AWS Support Knowledge Center

Need help? Visit the AWS Support Center.

Published: 2017-04-11