
Originally Posted by
alb3530
I've just installed latest version of Raccoon, and i'm wondering how to allow access to all memory card files, but restricting some folders.
if i comment the line
Alias /e-root/ "E:/"
, it'll show "forbidden" when someone wants to access the root of my Memory card.After some tries, i could make it accessible, but i want obviously lock some folders like E:\data\apache and E:\myapps\
what should i add to httpd.conf in order to restrict access to a particular folder when the whole memory card is accessible?
Add something like this to your httpd.conf
Code:
<Directory "E:/">
Options Indexes
Allow from all
</Directory>
<Directory "E:/myapps">
Deny from all
</Directory>
but that's pretty dangerous, because sooner or later you will add a directory you do not intend to share, and forget to prevent access to it. Much safer is to deny access to everything and then explicitly enable access to those directories you want to share.
Check http://httpd.apache.org/docs/2.0/mod...html#directory and http://httpd.apache.org/docs/2.0/mis...rity_tips.html for more information.