Setting up restrictions on Apache
Posted on 2011-03-13
I was wondering if there is a way to restrict access to a particular directory using apache. I know there is however I was using the <Directory> option shipped in apache but it seems like when this is enable it affects all my sites.
for example if I wanted restrict access to a particular virtual host -
So for example I have a bunch of files in /var/www/mydir and I wanted to restrict access to only localhost.
How can I accomplish this without affecting any other operations of the webserver?
I am probably missing something in my config somewhere thats making the change global or something.
Any suggestions would be highly appreciated.