Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following rule defined in my Web.config:

<rule name="Enforce canonical hostname" stopProcessing="true">
    <match url="(.*)" />
        <add input="{HTTP_HOST}" negate="true" pattern="^www\.mydomain\.org$" />
    <action type="Redirect" url="" redirectType="Permanent" />

What I am experiencing is strange...

It appears that I am being redirected to which causes my browser to hang. I do not have SSL encryption turned on, nor do I have any special authorization rules. The web server in question is behind an F5 load balancer.

Any ideas?

share|improve this question

Enable Failed Request Tracing for the site, and trace on any response code (100-500 works for me), with all options on.

Once you've got the log, use the Compact view, and check that what you're being handed as input and what you're sending as output actually jives with what your rules expect to see.

If the web server finishes with a 301/302 , you know* your problem is external.

I can't speak for F5, but with ISA, if you traverse a connection as HTTPS once, it'll upgrade/redirect subsequent requests to HTTPS to avoid cookie-in-the-clear type scenarios.

share|improve this answer
up vote 0 down vote accepted

The load-balancer was rewriting redirects to always be HTTPS. See Possible to redirect from HTTPS to HTTP behind load-balancer? for more info.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.