Google Answers Logo
View Question
 
Q: Adding an IIS 6.0 host header alias from a batch file ( No Answer,   2 Comments )
Question  
Subject: Adding an IIS 6.0 host header alias from a batch file
Category: Computers > Operating Systems
Asked by: bigjosh-ga
List Price: $2.00
Posted: 05 Dec 2004 20:24 PST
Expires: 04 Jan 2005 20:24 PST
Question ID: 438616
I am looking for a reliable way to add a host header alias to a IIS 6.0 web site. 

Basically the batch file I want could take the form...

ADDHOST existing_site_name new_host_header new_port

Note that I do not think that the IISWEB script can do this - it can
only create an entirely new website, not add a header to an existing
site.

Also note that you can potentially do this with the adsutil.vbs
script. You would need to first do a GET to list all the existing host
headers on the existing site, and then do a SET to set all the
existing ones PLUS the new one you want to add. I can not figure out a
good/reliable way to do this, nor can I figure out how to do an
ADSUTIL SET that would append
a value to the list rather than overwriting the whole list with the new
value.

thanks.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Adding an IIS 6.0 host header alias from a batch file
From: sunaryohadi-ga on 09 Aug 2005 13:30 PDT
 
adsutil.vbs just doin great!

But still I found an error. When I put the same alias host header, the
site will stop.

I still looking for function to query the host header.
Subject: Re: Adding an IIS 6.0 host header alias from a batch file
From: bigjosh2-ga on 09 Aug 2005 17:27 PDT
 
I ended up solving this myself. Check out...

http://josh.com/IIS/index.htm

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy