<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ankit Singhal Knowledge Base &#187; IIS6</title>
	<atom:link href="http://kb.asinghal.com/category/iis6/feed/" rel="self" type="application/rss+xml" />
	<link>http://kb.asinghal.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 Dec 2009 04:03:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating virtual host for SSL/HTTPS port in IIS6</title>
		<link>http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/</link>
		<comments>http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 10:47:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[IIS6]]></category>
		<category><![CDATA[Virtual Host]]></category>

		<guid isPermaLink="false">http://kb.asinghal.com/?p=9</guid>
		<description><![CDATA[You can not create the virtual host for SSL port in IIS.  Its a UI bug. But you can achieve the same thing using the command line by using the following steps:
1. Create two websites in IIS and configure HTTPS on both of the websites.
2. At this point you will not be able to start [...]]]></description>
			<content:encoded><![CDATA[<p>You can not create the virtual host for SSL port in IIS.  Its a UI bug. But you can achieve the same thing using the command line by using the following steps:</p>
<p>1. Create two websites in IIS and configure HTTPS on both of the websites.<br />
2. At this point you will not be able to start both the websites at the same time, because https is configured on 443 port in both the websites.<br />
3. Stop both the website if running.<br />
4. Go to commands line and cd to C:\Inetpub\AdminScripts folder.<br />
5. Now you have to figure out the website identity of you want to change the host. Type following command to command line. You may want to run this command two times, because first time it may try to set the VB script as default script</p>
<pre><span style="color: #008000;">C:\Inetpub\AdminScripts&gt;iisweb /query
Connecting to server ...Done.
Site Name (Metabase Path)                     Status  IP              Port  Host

==============================================================================
Default Web Site (W3SVC/1)                    STOPPED ALL             80    N/A
Communicator Web Access (W3SVC/175074822)     STOPPED 127.0.0.1       81    N/A
VMware Management Interface 1.0.4 (W3SVC/2)   STARTED ALL             8222  N/A
reliance (W3SVC/1386234876)                   STARTED ALL             82    N/A</span></pre>
<p><span style="font-weight: bold;">Note: you should get all the sites registered in your IIS server along with their site identities.</span><br />
6. Modify the virtual host of SSL port using following command</p>
<pre><span style="color: #008000;">C:\Inetpub\AdminScripts&gt;cscript.exe adsutil.vbs set  W3SVC/&lt;site identifier&gt;/SecureBindings ":443:&lt;host header&gt;"
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

SecureBindings                  : (LIST) ":443:&lt;host header&gt;"</span></pre>
<p>7. Make sure host name is properly configured in your DNS server.<br />
8. Start both the websites.<br />
9. You should be able to access both the application using different host on https communication.</p>
<p><span style="font-weight: bold;">More: </span><br />
<a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e5bc9d3c-0043-43c9-a5cc-ac390d74849b.mspx?mfr=true" target="_blank">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/e5bc9d3c-0043-43c9-a5cc-ac390d74849b.mspx?mfr=true</a><br />
<a href="http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true" target="_blank">http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8d9f2a8f-cd23-448c-b2c7-f4e87b9e2d2c.mspx?mfr=true</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a title="Click me to see the sites." href="#" onclick="$$('div.d9').each( function(e) { e.visualEffect('slide_down',{duration:2.5}) }); return false;"><img src="/wp-content/themes/generic-plus/img/share-it.gif" /></strong></a>
<br />
<div class="d9" style="overflow:hidden">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://buzz.yahoo.com/submit?submitUrl=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;submitHeadline=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6&amp;submitSummary=" rel="nofollow" title="Add to&nbsp;Buzz"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/buzz.png" title="Add to&nbsp;Buzz" alt="Add to&nbsp;Buzz" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;title=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;title=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;title=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.mister-wong.com/index.php?action=addurl&amp;bm_url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;bm_description=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Mister Wong"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/misterwong.png" title="Add to&nbsp;Mister Wong" alt="Add to&nbsp;Mister Wong" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;T=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;title=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit.php?url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;title=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6+@+http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/&amp;t=Creating+virtual+host+for+SSL%2FHTTPS+port+in+IIS6" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://kb.asinghal.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
<a style="font-size:90%;text-align: right; " title="Click me to hide the sites." href="#" onclick="$$('div.d9').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); return false;">Hide Sites</a>
</div>
</div>
<!-- Social Bookmarks END -->
<script type="text/javascript">$$('div.d9').each( function(e) { e.visualEffect('slide_up',{duration:0.5}) }); </script>]]></content:encoded>
			<wfw:commentRss>http://kb.asinghal.com/03/creating-virtual-host-for-sslhttps-port-in-iis6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

