Gentoo Archives: gentoo-user

From: thelma@×××××××××××.com
To: Gentoo mailing list <gentoo-user@l.g.o>
Subject: [gentoo-user] apache 2.4 - deny access to directory
Date: Sun, 29 Nov 2020 07:30:21
Message-Id: 957aeb18-9662-3c9f-01ee-2217c5fcd4a6@sys-concept.com
1 I'm trying to deny access to all except specific IP address in a
2 directory, just testing it.
3
4 In modules.d/00_default_settings.conf
5
6 <Directory "/var/www/localhost/htdocs">
7 Options MultiViews
8 AllowOverride All
9 Require all granted
10 </Directory>
11
12 in admin/.htaccess
13
14 <RequireAll>
15 Require all denied
16 Require ip 10.0.0.100
17 </RequireAll>
18
19 My IP is 10.0.0.112 and I can still access the server /admin directory
20
21 What am I missing?
22 --
23 Thelma

Replies

Subject Author
Re: [gentoo-user] apache 2.4 - deny access to directory Michael <confabulate@××××××××.com>