Re: temporary enable/disable access

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

 





On Thu, Aug 1, 2024 at 5:18 PM Marc <Marc@xxxxxxxxxxxxxxxxx> wrote:

I have currently such virtual host config:


      1 <Directory /aaa/bbbb/cccc>
      2   AllowOverride All
      3   Require all granted
      4 </Directory>

     45 <Location />
     46   Order deny,allow
     47   Deny from all
     48   #Allow from all
     49   Allow from 1.1.1.1
     50   #Allow from 2.2.2.2
     51   # allow cron

The idea is that I can quickly limit access to the website by uncommenting just a single line in the config. However when I change it to

     47   #Deny from all
     48   Allow from all

Such files in dirs are not protecting files any more

[@]# cat /aaa/bbbb/cccc/dddd/eeee/.htaccess
Order deny,allow
Deny from all

Anyone know what I need to add to the location /  section?





Why are you still using 2.2 authz directives here, out of curiosity? 

[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