restricting a subdirectory in virtual host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I would like to make a document root folder of a virtual host open to public, but restrict access to root/admin folder to certain IP ranges only. Below is what I have currently. I have restricted the survey/admin folder, but everyone can still view pages. Any suggestions on what I am doing wrong? Thank you,

DocumentRoot /var/www/survey
   <Directory />
       Options FollowSymLinks
       AllowOverride None
   </Directory>
   <Directory /var/www/survey>
       Options FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       allow from all
   </Directory>
   <Directory /var/www/survey/admin>
       Options FollowSymLinks MultiViews
       AllowOverride None
       Order deny,allow
       Deny from all
       Allow from localhost
   </Directory>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux