Page 1 of 1

Protecting the "/" directory in Apache.

Posted: 2020/06/26 06:55:18
by hack3rcon
Hello,
What id the difference between these two configuration:

Code: Select all

<Directory />
    AllowOverride none
    Require all denied
</Directory>
And:

Code: Select all

<Directory />
Options None
Order allow,deny
Allow from all
</Directory>
Thank you.

Re: Protecting the "/" directory in Apache.

Posted: 2020/06/26 08:02:45
by KernelOops
The first is using apache 2.4 syntax and blocks all access to the "/" directory.

The second is using the old apache 2.2 syntax, but its set to allow all access to the "/" directory.

More details here: https://httpd.apache.org/docs/2.4/upgrading.html

Re: Protecting the "/" directory in Apache.

Posted: 2020/06/26 09:22:12
by hack3rcon
Thank you.