{"id":113,"date":"2012-07-18T07:22:14","date_gmt":"2012-07-18T12:22:14","guid":{"rendered":"https:\/\/www.asberry.org\/blog_tech\/?p=113"},"modified":"2012-07-18T07:22:14","modified_gmt":"2012-07-18T12:22:14","slug":"binding-https-protocol-to-2-sites-with-host-headers","status":"publish","type":"post","link":"https:\/\/asberry.org\/blog_tech\/?p=113","title":{"rendered":"Binding https Protocol to 2 Sites with Host Headers"},"content":{"rendered":"<p>I almost didn&#8217;t know what the hell to title this post because it&#8217;s almost too obscure to understand. \u00a0Here&#8217;s the skinny:<\/p>\n<p>I&#8217;m having to move our DNN site from a server that is on life support (win2k3\/IIS6\/32bit) to a brand spanking new VM (w2k8\/IIS7\/64bit). \u00a0Sounds like fun doesn&#8217;t it? \u00a0Well the main problem is that the default web site is DNN but we also have to host an unsubscribe form so if you don&#8217;t want job notices you just click remove and we stop sending notices. \u00a0Should be nice and easy to set up host headers to catch this. \u00a0And if works fine and well if you just want to do it on port 80. \u00a0But god forbid you want to use host headers for SSL. \u00a0You have to use the appcmd.exe from the command line to do this. \u00a0Now I have no idea how it works but here is what did the trick for me and binding the unsubscribe site to SSL with host headers:<\/p>\n<p>appcmd set site \/site.name:&#8221;unsubscribe&#8221; \/+bindings.[protocol=&#8217;https&#8217;,bindingInformation=&#8217;*:443:unsubscribe.pdstech.com&#8217;]<\/p>\n<p>And just a <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/cc730918%28v=ws.10%29\" target=\"_blank\">note I found on technet<\/a>, even if you are running a 64bit server don&#8217;t use the exe from the syswow64 directory, so much for consistancy MSFT:)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I almost didn&#8217;t know what the hell to title this post because it&#8217;s almost too obscure to understand. \u00a0Here&#8217;s the skinny: I&#8217;m having to move our DNN site from a server that is on life support (win2k3\/IIS6\/32bit) to a brand spanking new VM (w2k8\/IIS7\/64bit). \u00a0Sounds like fun doesn&#8217;t it? \u00a0Well the main problem is that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[11],"tags":[],"class_list":["post-113","post","type-post","status-publish","format-standard","hentry","category-iis","author-aron"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p4bBkH-1P","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=113"}],"version-history":[{"count":1,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions"}],"predecessor-version":[{"id":114,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=\/wp\/v2\/posts\/113\/revisions\/114"}],"wp:attachment":[{"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/asberry.org\/blog_tech\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}