Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is is possible to create a virtual directory that is only for a particular host name. For example, I have an IIS site which responds to and I'd like to create a virtual directory that only applies to

share|improve this question

Yes & no. With IIS you would be required to setup 2 sites (with the hostnames listed in the site bindings), one of which has the virtual directory, and the other without.

If you're not making use of the site bindings with hostnames, you're going to run into problems. It's good practice to use them anyway.

share|improve this answer
Thanks for the info. Unfortunately I can't set up two IIS sites as this causes conflicts with my wcms. My apologies for not mentioning this above. – Kyle Sep 8 '10 at 15:25

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.