Using Apache/2.4.18 (Ubuntu)
My in-house site is protected by a single .htaccess file in my root directory.
It looks like this:
AuthUserFile /var/security/mysite/.htpasswd
AuthGroupFile /var/security/mysite/.htgroups
AuthType Basic
AuthName "Mysite Secure"
require group associates
It works as expected, to require userID and password to access any file on the site.
I now have a need to allow public, unrestricted, access to a new directory that I call show. I can find no clear example of what I need and where I need to place it to make this directory brows-able by all. There are countless snippets saying just use this
Allow from all
I tried putting this statement in an htaccess file in the show directory, it results in a 500 Internal Server Error.
Does there need to be more than these three words to make an htaccess file?
Another common suggestion says use this:
<Directory "/var/www/mysite/public_html/show">
Allow from all
Satisfy Any
</Directory>
But does not say where this should be placed;
- in the root Directory?
- in the show directory?
I have tried both, both result in a 500 error
It seems that htaccess is very mysterious and no clear documentation exists. Even the Apache site is simply a list of examples without a discussion of how it works and what are the rules.