[users@httpd] deny from all is needed?

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

 



Hi,

I'm having a small argument with another "sys admin" (ok, newbies sys admins :P) and i would like to know if you can help, I want to restrict a dir to only a network (10.254.0.0/24). I'm using this config:

<VirtualHost *:80>

       ServerName      test.example.com

       DocumentRoot    /var/www/manual

       ErrorLog       /var/log/error_log

       CustomLog      /var/log/access_log common

       <Directory "/var/www/manual">

               Order deny,allow

               Allow from 10.254.0.0/24

       </Directory>

</VirtualHost>



As you noticed i'm not using in the directory directive the "deny from all" instruction and that is my doubt: *is it still correct to use it this way without the "deny from all" or the deny from all is needed for this to work?*

I tried it and i think it works as is, but my friend is telling me he always uses deny from all and that it is needed... Apache version is the latest from 2.0 and all other configs are not touched.


Thanks in advance for your feedback,
 -- cifroes


---------------------------------------------------------------------
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