I'd like to deny access to directory /foo/secret.
If I create a .htaccess file in /foo/secret, with...
<Directory ./>
Order deny,Allow
Deny from all
</Directory>
...I get a "500 Internal Server Error", which, while achieving the intended result, isn't the "403 Forbidden" message I was expecting.
I know you're supposed to put an absolute path in Directory directives but I'm committing this into a code repository and the remote client won't necessarily be running in the same path.