I have an Apache config that restricts access to to a website, using the following code -
<Directory /var/www/html/website/test/>
AuthName "Dyne Drewett Test Site"
AuthType Basic
AuthUserFile /usr/local/etc/apache/.htpasswd
require valid-user
</Directory>
Does anybody know how I can amend this to allow full, unauthorised access to one directory under /test/
? Thanks.
Update
After some help from @dunxd I now have this, which I'm guessing must be wrong as I'm still getting the 401 error when going to the page that is requested (found with the /dyne_drewett/
directory). Any further help would be great.
# Main directory rules
<Directory /var/www/html/website/test/>
# General access to the site
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from 192.168.1
# Authorisation settings
AuthName "Dyne Drewett Test Site"
AuthType Basic
AuthUserFile /usr/local/etc/apache/.htpasswd
require valid-user
</Directory>
# Theme directory rules
<Directory /var/www/html/website/test/wp-content/themes/dyne_drewett/>
# General access to the folder
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
# Authorisation settings
AuthType None
require all granted
</Directory>