Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

You can make two separate virtual hosts, one listening on 127.0.0.1, 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

 
discard

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.