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

Would like to block access to dir1 wwwroot/dir1 from being accessed via the net, while allowing it to be accessed locally http://localhost/dir1

On II7

Thank you.

share|improve this question

You can make two separate virtual hosts, one listening on, other on public IP. Inside virtualhost listening on public IP you block access from all to that directory inside directory block directive.

share|improve this answer
what would that settings block look like? – warren Jun 28 '11 at 3:51

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.