Solved

SBS 2011 IIS is always redirecting to HTTPS

Posted on 2014-01-29
5
504 Views
Last Modified: 2014-01-29
I have an installation of Small Business Server 2011.

There are a few files in the C:\INetPub\wwwroot folder which need to be served up when we access the server via a hostname like "http://kb.mycompany.com" instead of "https://remote.mycompany.com". For technical reasons, it needs to be served without SSL.

For some reason, I'm getting some very strange redirection behavior when I try to access the site.

If I go to http://kb.mycompany.com, it does show the "IIS 7.0" splashpage, as I want it to, but it redirects to HTTPS. I don't understand why, I don't see anywhere in IIS that says it should do that.

Additionally, if I go to, say, http://kb.mycompany.com/folder/anotherfolder/aaa.html, it actually redirects to https://KB.MYCOMPANY.COM/FOLDER/ANOTHERFOLDER/AAA.HTML, all in uppercase.

That's totally strange, and I don't understand why it is doing that either.

Can anyone point me in the right direction, at least maybe give me an idea of what parts of IIS I should be looking in to try and investigate why this is happening?
0
Comment
Question by:Frosty555
  • 3
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
achaldave earned 500 total points
ID: 39818173
Check website's SSL options in IIS, is it set to require SSL? check HTTP redirect option. Check error pages,  specially 403 there might be scripted redirect. The redirection can be added to page itself check "AAA.HTML" for any redirection to HTTPS.
0
 
LVL 31

Author Comment

by:Frosty555
ID: 39818285
The "Require SSL" checkbox is ticket at the top level.

If I untick it on one of my subfolders, I CAN indeed browse that website using HTTP and it doesn't redirect me!
 
Still, though... if "Require SSL" was ticked I would expect it to throw a 403.4 forbidden error, not redirect to the HTTPS version of the site. And the "all uppercase" redirection is baffling!

There's no custom error pages, no HTTP redirect option, and the page itself isn't doing a redirect (at least not any of MY pages, I don't know what tweaks and modifications have been applied through SBS 2011's Microsoft Exchange installation)...

Judging from what I see in Google Chrome's network debugger it is definitely an HTTP 302 redirect that is coming from the server.

What could be causing the redirect?
0
 
LVL 15

Expert Comment

by:achaldave
ID: 39818442
Check the 403.4 error page, since your site is configured to require SSL and is not throwing 403 error it looks like the 403 error page is customized to redirect. Under error pages section, open properties of 403 and check the filename and path under response action, the file configured there must have redirection.
0
 
LVL 31

Author Comment

by:Frosty555
ID: 39818548
Strangely enough, there are no custom 403 error pages configured. I've done that before on other Exchange servers to have OWA redirect to HTTPS, but for some reason in SBS 2011 it isn't necessary.

In any case I figured it out (or at least figured a workaround).

The problem really is that all of these requests are being served by the "Default Web Site" site, which has Require SSL ticked and I'm hesitant to turn that off.

So instead I created a new Site, which does not have Require SSL ticked, and I added all of the hostnames (such as kb.mycompany.com) to the Bindings.

Now this new site is used to serve kb.mycompany.com, and my other hostnames like mail.mycompany.com and remote.mycompany.com are happily served by SBS 2011 like normal
0
 
LVL 31

Author Closing Comment

by:Frosty555
ID: 39818552
The big clue was to look at the "Require SSL" tickbox, which was ticked.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I’m often asked about newer and larger USB drives connected to SBS2008 and 2011 failing Windows Server Backup vs the older USB drives not failing. As disk space continues to grow and drive technology change SBS2008 and some SBS2011 end up with the f…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now