Answers
Subject Date - DESC Rating Viewed Topic
Article Selected >> How do I configure IIS to forward all HTTP requests to HTTPS?
Question:
I have an iService On-Premise tenant that I'd like to require SSL on, but would also like non-SSL requests to work.  How do I configure IIS to forward all HTTP requests to HTTPS?
Answer:
To configure in IIS 7.0+, use the following setups:

• Make sure that both https (port 443) and http (port 80) on your site are bound to your environment's desired host/ip in IIS, such as in the example below. For more information on configuring bindings, see https://technet.microsoft.com/en-us/library/cc731692(v=ws.10).aspx

• Install the url_rewrite mod for IIS, which can be found at https://www.iis.net/downloads/microsoft/url-rewrite. This can also be installed using the Windows Server Role/Feature manager in some versions of Windows Server.

• In the web.config file, add the following inside the system.webServer tag:

<rewrite> 
  <rules>
<rule name="HTTP to HTTPS redirect" enabled="true" stopProcessing="true">
  <match url="(.*)" />
    <conditions>
      <add input="{HTTPS}" pattern="off" ignoreCase="true" />
    </conditions>
  <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
</rule>
  </rules>
</rewrite>

Article DetailsSubscribe and Rate this article
Article ID:583577
Date Updated:10/26/2016 11:29:17 AM
# Views:1728
Article Creator:Steve A. Dubrick
Article Topic:Site configuration
Attachments:ii_72a0682df61844d9bd07f32bee96c9d7
Updating the Message Queue page to the new version in 7.4 1/22/2016 5:24:29 PM None 2164 Site configuration
Updating agent count for on-premise installations 7/7/2014 11:59:40 AM 4.5 2699 Site configuration
Simple example for filtering messages to a new topic 12/18/2012 3:39:34 PM 5.0 3288 Site configuration
Sample auto response templates 6/24/2011 4:06:30 PM None 2322 Site configuration
w3wp.exe is using too much memory 6/2/2011 10:03:22 AM None 352439 Site configuration
SPF and DKIM for mailings 8/24/2010 6:32:08 PM None 2998 Site configuration
Deleting or moving mailboxes 4/15/2010 5:55:38 PM 5.0 1943 Site configuration
Please Wait...