How can I add a new https site to my local IIS?

  • Page Owner: Not Set
  • Last Reviewed: 2018-09-04

How can I add a new site with https support to my local IIS? Hopefully this will also include instructions for setting up multiple episerver sites.


Additional Posts

  1. Add to the hosts file
  • Open your hosts file (Normal windows path: C:\Windows\System32\drivers\etc\hosts)
  • Add a line for your new Url 127.0.0.1 new.url
  1. Configure IIS
  • Open IIS
  • Right click Sites
  • Click Add Website
  • Enter your site name and the host name to be used
  • Hit Okay
  • Right Click your site, or on the right side bar select Edit Bindings
  • Add a route for https (port 443)
  1. Configure Episerver
  • Login to Episerver
  • Go to the CMS Admin panel
  • Go to the Config tab
  • Add a site with the Url configured in your hosts file http://new.url
  • Add any other host names you may need
  1. Install IIS (https://www.itnota.com/install-iis-windows/)

  2. Clone project to C:/inetpub/wwwroot/

  3. In Visual Studio, right click on your project, and select properties.

  4. Click the Web tab and then select External Host from the dropdown in the Servers section and check if the Project Url is already set. If it is, go to step 5. If not, create a url for the site that follows this pattern https://.blendinteractive.com

  5. Create a site Url in your hosts file (located at C:\Windows\System32\drivers\etc) that uses the Project Url from step 4 (127.0.0.1 .blendinteractive.com)

  6. Open IIS Manager and Create a new site

    • Right click on Sites folder, then click Add Website
    • Enter the site name, this doesn’t have to be anything specific
    • Set the physical path to your website files in the wwwroot folder from step 2
    • Set the host name property to the site url that you put into your host file in step 3
  7. Some sites automatically redirect to https, if so, you need to add an https binding

    • Click Bindings on the right pane within your site
    • Click Add
    • Select https from the Type dropdown
    • Enter the same host name you used in step 4d
    • Select IIS Express Development Certificate from the SSL certificate dropdown
  8. (Talk to Bob about Application Pool permissions)