W2003 add subdomain to existing website using classic aspI need to add a subdomain to an existing webiste. It must be done in classic asp / vbscript. <br/><br/>Adding a new webiste with hostheaders works, but for large numbers (+1000) i do not want each subdomain to actually be a site of its own in IIS, i just want to add a subdomain to an existing site in IIS. Any one got suggestions, this would greatly help me!© 2009 Microsoft Corporation. All rights reserved.Mon, 06 Jul 2009 04:15:11 Z597e441a-87b4-43fe-a8b7-1cc34bc67666http://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#597e441a-87b4-43fe-a8b7-1cc34bc67666http://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#597e441a-87b4-43fe-a8b7-1cc34bc67666mblokdijkhttp://social.technet.microsoft.com/Profile/en-US/?user=mblokdijkW2003 add subdomain to existing website using classic aspI need to add a subdomain to an existing webiste. It must be done in classic asp / vbscript. <br/><br/>Adding a new webiste with hostheaders works, but for large numbers (+1000) i do not want each subdomain to actually be a site of its own in IIS, i just want to add a subdomain to an existing site in IIS. Any one got suggestions, this would greatly help me!Thu, 02 Jul 2009 08:18:17 Z2009-07-02T08:18:17Zhttp://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#0723a77c-80e6-4f52-8ba2-8bc6189d862ahttp://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#0723a77c-80e6-4f52-8ba2-8bc6189d862aNickHunyadyhttp://social.technet.microsoft.com/Profile/en-US/?user=NickHunyadyW2003 add subdomain to existing website using classic aspI can help with this. Let me dig into my codebase and I will post something as soon as possible. <br/><br/>Just to throw you something immediately, there is a script on all Server 2003 server's called IISVDir to automate virtual directory creations. <br/><br/>Here is posting of mine showing vbscript call IISVDir. <br/><br/><a href="http://social.microsoft.com/Forums/en-US/ITCG/thread/d371a564-30cd-424c-bed4-045713a23be2">http://social.microsoft.com/Forums/en-US/ITCG/thread/d371a564-30cd-424c-bed4-045713a23be2</a><br/><br/>Mon, 06 Jul 2009 01:43:19 Z2009-07-06T01:43:19Zhttp://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#c01c09f9-8cf7-45c1-b19b-11e38abe4e84http://social.technet.microsoft.com/Forums/en/ITCG/thread/597e441a-87b4-43fe-a8b7-1cc34bc67666#c01c09f9-8cf7-45c1-b19b-11e38abe4e84NickHunyadyhttp://social.technet.microsoft.com/Profile/en-US/?user=NickHunyadyW2003 add subdomain to existing website using classic aspI started reading more into your post and I think I was off. <br/><br/>Is this what you are looking for?<br/><br/>&lt;% <br/>Set HTTPHost = Request.ServerVariables(&quot;HTTP_HOST&quot;) <br/>If HTTPHost = &quot;domain1.com&quot; then <br/>Response.Redirect (&quot;http://www.domain1.com/domain1/index.asp&quot;) <br/>End If <br/>If HTTPHost = &quot;domain2.com&quot; then <br/>Response.Redirect (&quot;http://www.domain2.com/domain2/index.asp&quot;) <br/>End If <br/>%&gt;<br/>Mon, 06 Jul 2009 04:15:11 Z2009-07-06T04:15:11Z