Search


Sponsors

Redirect HTTP connection to HTTPS

ExchangeWe've all experienced it with setting up an Exchange Server with Outlook Web Access (OWA). Users are connecting with HTTP while they should use HTTPS. Normally they would get an 403.4 error when connecting with HTTP, telling them to use HTTPS, which they have to type in manually. Wouldn't it be easier if they were redirected to HTTPS? With IIS 6 you can do just that! Follow these steps:

  • Create a redirect.asp and place it in \Inetpub\wwwroot with this content:


  • <% If Request.ServerVariables("SERVER_PORT")=80 Then
    Dim strSecureURL strSecureURL = "https://"
    strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
    strSecureURL = strSecureURL & "/exchange"
    Response.Redirect strSecureURL
    End If %>


  • In IIS manager, choose properties for the Exchange virtual directory

  • Choose the Custom Errors tab and double click 403.4, then select URL as the Message Type

  • In the URL box, type /redirect.asp and choose OK


  • Users will now be redirected to HTTPS if they mistakenly type HTTP in the URL!


    I found this article filled in the gaps I was missing to get it working properly: http://support.microsoft.com/default.asp...
    Clowntrigger - 08 12 06 - 14:32

    Great! Thank you.
    Maarten - 08 12 06 - 15:10


      
    Remember personal info?

    Emoticons / Textile

    Before sending a comment, you have to correctly answer a simple question you know the answer to. This is a countermeasure against automated spam bots.
     

      ( Register your username / Log in )

    Notify:
    Hide email:

    Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.