On Monday, 30 November 2020 20:07:10 GMT [email protected] wrote:

> Thank for looking into it and input.
> I must be missing someting because if I use in .htaccess file direcive:
>  <Directory "/var/www/localhost/htdocs/*/admin"> or
>  <Location "*/admin">
> 
> In both cases I get an error from Apache:
> 
> [client 10.0.0.109] /var/www/localhost/htdocs/catalog/admin/.htaccess:
> <Directory not allowed here [client 10.0.0.109
> /var/www/localhost/htdocs/catalog/admin/.htaccess: <Location not allowed
> here

Yes, the error is because Directory and/or Location directives ought to go in 
the main apache config files for this vhost, rather than in .htaccess.

Is there a particular reason you want to use .htaccess, rather than files in 
the /etc/apache subdirectories?

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to