Was this page helpful?

Setting up an HTTPS only site under IIS 6.0

    Table of contents
    No headers

    The traditional method for creating Https-only under IIS 6.0 is to check Require secure channel (SSL) in the Secure Communications dialog accessible from the site's Directory Security tab. However, the Deki UI uses its' REST api over http to construct pages. This communication should remain over http rather than https to avoid the overhead not required for internal only communication. This means that the Deki must be reachable via port 80.

    The api is also directly exposed for certain functions, such as access to attachments and images, which means we can't simply hide the API from the public and make it accessible by http to the front end only.

    What is needed is API access via Https for remote requests and via Http only for local requests:

    1. Open your website's Properties in IIS Manager 
    2. In the Web Site tab, click on the Advanced... button
    3. Double-clcik the entry in Multiple identities for this Web Site for port 80
    4. Set IP Address to 127.0.0.1
    5. Close all windows

    Now you should be able to access your site both via http://localhost and https://localhost when on the server itself, but reaching it from the outside, http://yoursite.com/ will return a Status code 400 - Bad Request (Invalid Hostname).

     

    Was this page helpful?
    Tag page
    Viewing 1 of 1 comments: view all
    Can I have the 400 - bad request page either forward to the https page or give a custom mesasge?
    Posted 15:24, 8 Oct 2009
    Viewing 1 of 1 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by