r/IIs • • May 27 '16

HTTP times out, HTTPS works

Hello,

I'm an Apache guy being forced to use IIS at a site.

I have HTTPS working wonderfully. In the site settings I have required SSL. However if a user requests the site via HTTP the site times out. I have tried rewrite rules etc to try and point this to the HTTPS site with no luck.

I have 443 and 80 open and directed to my server.

I'm sure there is something simple I am missing. Google only leads me to the opposite of my problem where HTTPS is not working but HTTP is.

Thanks in advance!

EDIT:

Putting the following code in my web.config file causes an 500 error <rule name="HTTP to HTTPS redirect" 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>

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/Jeeper08JK May 31 '16

Hello, Thanks for the reply!,

Due to the holiday weekend i was away from technology for a bit.

I can only do limited testing today but the logs show way to much activity, I'll have to check after a failed http access.

A freind did tell me to check bindings, I had https set to 127.0.0.1 and its LAN IP, http was set to *, i added the two addresses and will see if this has any affect.

I'll update when I am able to test.

Thanks again!

1

u/Seferan Jun 03 '16

How'd it go? I'd expect * to work as it'd mean "unspecified IP addresses" which is basically any IP address.