Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] apache 2.4 - deny access to directory
Date: Mon, 30 Nov 2020 21:20:36
Message-Id: 7885521.NyiUUSuA9g@lenovo.localdomain
In Reply to: Re: [gentoo-user] apache 2.4 - deny access to directory by thelma@sys-concept.com
1 On Monday, 30 November 2020 20:07:10 GMT thelma@×××××××××××.com wrote:
2
3 > Thank for looking into it and input.
4 > I must be missing someting because if I use in .htaccess file direcive:
5 > <Directory "/var/www/localhost/htdocs/*/admin"> or
6 > <Location "*/admin">
7 >
8 > In both cases I get an error from Apache:
9 >
10 > [client 10.0.0.109] /var/www/localhost/htdocs/catalog/admin/.htaccess:
11 > <Directory not allowed here [client 10.0.0.109
12 > /var/www/localhost/htdocs/catalog/admin/.htaccess: <Location not allowed
13 > here
14
15 Yes, the error is because Directory and/or Location directives ought to go in
16 the main apache config files for this vhost, rather than in .htaccess.
17
18 Is there a particular reason you want to use .htaccess, rather than files in
19 the /etc/apache subdirectories?

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] apache 2.4 - deny access to directory thelma@×××××××××××.com