IIS redirect site to HTTPS

To force a site to always use HTTPS, add following content to web.config file.

Here is full web.config file for a web site that use WordPress and Force SSL

Windows 2016 IIS not listen on external IP

On a Windows 2016 server, IIS web site is set to bind on all IP address on the server.

But site is only available on 127.0.0.1 (localhost). To check if this is due to firewall, i disabled firewall, the problem still exists after disabling firewall.

To fix the problem, run following commands as user “Administrator”

Now restart IIS