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? |