On my localhost i use the php build in server, and want to block some directory.
<Directory /config/>
Options +Indexes
IndexOptions +FancyIndexing
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Directory>
But on my debian apache2 server i ve get an internal server error. Apache2 error log:
[Tue Dec 21 08:38:31.577748 2021] [core:alert] [pid 30883] [client xxx:42012] /var/www/html/.htaccess: <Directory not allowed here