How to set exceptions in HTTP Basic authorization of Apache?

There is a site protected by HTTP authorization. You need to disable the requirement to login on the page /role_* (that is, instead of stars next is the text, for example: role_viking or role_home). The user should be able to get to these pages without a password and login.

The current configuration is something like this:

Options Indexes FollowSymLinks MultiViews
AllowOverride All
AuthName "Welcome to the Wiki! Protected area, need authorization"
AuthUserFile /var/www/.passwords
AuthType Basic
Order allow,deny
Allow from all

On the Apache server, without nginx, the configuration set in config. file Apache without .htaccess.
September 26th 19 at 11:38
2 answers
September 26th 19 at 11:40
Try the directory location for the data to make their .htaccess file with the contents:
Order Deny,Allow
Allow from all
September 26th 19 at 11:42
Something like this:
<locationmatch " role_*">
 Satisfy any
 Order allow, deny
 Allow from all

Find more questions by tags ApacheExceptionshtaccess