Need help?

Our experts have had an average response time of 12.14 minutes in September 2021 to fix urgent issues.

We will keep your servers stable, secure, and fast at all times for one fixed price.

Host website on EC2 Windows instance using IIS

by | Jul 13, 2021

Wondering how to host website on EC2 Windows instance using IIS? We can help you.

At Bobcares, we often get requests to restore the site as a part of our Server Management Services.

Today, let’s see how our Support Engineers host website on EC2.


How to host website on EC2 Windows instance using IIS?

Today, let us see the steps followed by our Support Techs to host website on EC2.

Open the required ports and configure IIS

  • Firstly, connect to your EC2 Windows Server instance using RDP.
  • Ensure that the instance has the required ports open, and that IIS is installed and configured on the instance.
  • Open the EC2 console, select your instance, choose the Description tab, and note the Public IP address.

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

  • Firstly, on your Windows Server instance, open IIS Manager.
  • Expand Sites, choose Default Web Site, choose Explore, and then choose the website .html home page.
  • Be sure that you can access the website locally.
  • Type your Public IP address in a browser and confirm that you can access the website externally.


Access your website from a host name using a static public Elastic IP address

  • Firstly, open the EC2 console and then choose Elastic IPs from the navigation pane.
  • Choose Allocate new address, Allocate, and then choose Close.
  • Open Actions, and then choose Associate Address.
  • Open Instance, choose your Instance ID, and then choose Associate.


Assign the IP to your domain name in Route 53

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


How to host multiple public websites using IIS on the same EC2 Windows Server instance?

If you have more than one website, you can host them in IIS on the same EC2 Windows Server instance.

IIS differentiates between websites by using bindings, which are a combination of the protocol type, IP address, port, and hostname.

To avoid IP and port conflicts, you must add a hostname.

Follow below steps to configure the IIS server on your instance to host multiple websites:

  • Firstly, make sure to install and configure IIS on the instance.
  • Then, use the Amazon EC2 console to get the IP addresses of the EC2 Windows Server instance.
  • Next, connect to the instance using Remote Desktop Protocol (RDP).
  • Open IIS Manager, and in the Connections pane, choose the site that you want to add a host name to.
  • In the Actions pane, choose Bindings, Edit, enter a name in the host name field, and then choose OK.
  • Update the hosts file with the host name to access the website locally from the IIS server:
  • Open a text editor using the Run as Administrator option, and then open the hosts file in the C:\Windows\System32\drivers\etc directory.
  • Enter the Private IP address of the EC2 instance and the host name of your website, and then save the file.
  • Repeat steps 4 through 6 for each additional website.

Now your websites can be accessed using the private IP address locally from the hosts file on the same EC2 Windows Server instance.

For public access, add the public IP address in your public hosted zone through your DNS host provider or with Amazon Route 53.

[Still, have any queries on Windows? – We can help you.]



In short, today we saw how our Support Techs host website on EC2 Windows instance using IIS.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.