Protecting the "/" directory in Apache.

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Protecting the "/" directory in Apache.

Post by hack3rcon » 2020/06/26 06:55:18

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.

User avatar
KernelOops
Posts: 428
Joined: 2013/12/18 15:04:03
Location: xfs file system

Re: Protecting the "/" directory in Apache.

Post by KernelOops » 2020/06/26 08:02:45

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
--
R.I.P. CentOS :cry:
--

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: Protecting the "/" directory in Apache.

Post by hack3rcon » 2020/06/26 09:22:12

Thank you.

Post Reply