How to force HTTPS usage for Application Suite web access and gadgets for Jabber implementing a HTTP -> HTTPS redirect in IIS

Applies to:

Application Suite all versions
 

Description:

If you want that information going through your network to be protected from prying eyes, you can force all your users to use https instead of http to access the Application Suite web interface and for gadgets for Jabber.
To do this you can make a simple redirect of http requests to https withing the Internet Information Server on which the Application Suite is running.
Follow this guide to know how to do it.

How-to:

Open Internet Information Services (IIS) Manager and identify the location where the "Default Web Site" store site files (Basic Settings | Physical path); it is usually in C:\inetpub\wwwroot\

In that folder open the file web.config and insert in <rules> section:

<rule name="RedirectToHttps" stopProcessing="false">
  <match url="(.*)" />
    <conditions>
      <add input="{HTTPS}" pattern="off" />
    </conditions>
  <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Temporary" 
              appendQueryString="false" />
</rule>

Restart IIS to apply the modification.

 

NOTES:



Article ID: 694
Last updated: 23 Dec, 2021
Revision: 10
Imagicle AppSuite Cross Platform -> FAQ and Solutions -> How to force HTTPS usage for Application Suite web access and gadgets for Jabber implementing a HTTP -> HTTPS redirect in IIS
https://kbp.imagicle.com/kb/entry/694/