« Previous Next »

Thread: problem redirecting from http to https

Last post 10-22-2009 5:54 AM by Leo Tang - MSFT. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 10-19-2009, 10:54 AM

    problem redirecting from http to https

    Server: Windows Server 2008 Standard + SP2 Hi, I originally posted this question in the Terminal Server forum but was told it was probably an IIS issue and I might get more help here. I have built a Windows 2008 Terminal Server for a proof of concept idea. I have it set up and working correctly, both internally and externally, with a public certificate. However, I want to make it as easy as possible for my users. So, I want them to be able to type http://remote.company.com and it redirect to - https://remote.company.com/ts The simple way seems to be using IIS 7's HTTP Redirect feature. On my Default Website, I double-click HTTP Redirect and choose to redirect to https://remote.company.com/ts (I also tick both boxes under Redirection Behaviour) and click Apply. When I visit the site by typing http://remote.company.com I get "Internet Explorer cannot display the webpage". However, if I got back into IIS on the server, within Default Website, if I click the 'Browse *.80 (http)' link on the right task-pane IE opens up and takes me to the correct page. If I also look in c:\inetpub\wwwroot\web.config I see the following code: If I'm on the server and open IE and type localhost into the address bar it redirects me to https://remote.company.com/ts I've tried various combinations of the tick boxes under the HTTP Redirect settings without success. I have found this thread, which suggests the HTTP Redirect is simple and works, but not for me. http://social.technet.microsoft.com/Forums/en/winserverTS/thread/c8ad2809-1561-4891-8e71-6cea85a64158 What am I missing? Cheers, Michael.
  • 10-19-2009, 3:13 PM In reply to

    Re: problem redirecting from http to https

    I guess my first question is whether https://remote.company.com/ts entered in the browser goes where it's supposed to.  It may be as simple as a firewall not having SSL opened.

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 10-20-2009, 6:37 AM In reply to

    Re: problem redirecting from http to https

    Hi Jeff, Thanks for your reply. Yep, the full address https://remote.company.com/ts works fine from outside. Is there anything else I should look at or try? Thanks very much Michael.
  • 10-22-2009, 5:54 AM In reply to

    Re: problem redirecting from http to https

    Hi, 

    Michael Y:
    On my Default Website, I double-click HTTP Redirect and choose to redirect to https://remote.company.com/ts

    If you set the HTTP Redirect on the site level, the sub folder will inherits this setting. It will caused http://remote.company.com redirect to https://remote.company.com/ts, https://remote.company.com/ts also redirect to https://remote.company.com/ts. Finally, you can't get a response from IIS.

    To fix this issue, you can set HTTP Redirect only for the default page of your site(Navigate to Content View in IIS Manager->highlight the default page->Click Switch to Features View on the Actions panel->Click the HTTP Redirect icon).

    For more information about HTTP Redirection, you can refer to:

    HTTP Redirects <httpRedirect>
    http://www.iis.net/ConfigReference/system.webServer/httpRedirect

    Leo Tang
    Microsoft Online Community Support

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Page 1 of 1 (4 items)
Microsoft Communities