Archive for October, 2012

Redirecting http to https in IIS7 (for SolarWinds Network Performance Monitor)

I fought with this for the good part of a day and after fighting with two more complex methods to force clients to connect to NPM via https, I came upon a much easier method using a simple http redirect.  I didn’t find any reference to this method anywhere on Thwack though so I thought I’d post it here for posterity.

 

First, the http redirect feature may need to be added to IIS.  Instructions on how to do this can be found here:

HTTP Redirects <httpRedirect> : The Official Microsoft IIS Site

IIS may need to be restarted after installing http redirect in order for it to show up in IIS manager.

 

Now that we have redirect capabilities installed in IIS follow these instructions:

1. Go into the SolarWinds NetPerfMon web site bindings in IIS 7 and removed the http entry. (leave the https entry alone).

2. Create the following directory (C:\inetpub\SolarWindsHttp). 

3. Create a new web site called SolarWinds HTTP and point the physical path to the new directory. 

4. Go into the HTTP Redirect Configuration for this new site and selected the check box for Redirect requests to this location (https://yoururl.com). 

5. Select the check box for redirect all request to exact destination (instead of relative to destination). 

6. Restart IIS.

 

These instructions are provided as is. This worked for me.  I give no guarantee that it will work for you. If it doesn’t work for you, it isn’t my fault. If it causes your server to melt into a puddle of molten metal, I take no responsibility.  Use at your own (albeit very small) risk.