@
@
@loomaleht2014-07-25 19:33:20
Apache HTTP Server
@loomaleht, 2014-07-25 19:33:20

How to set exceptions in Apache HTTP Basic Authorization?

There is a site protected by HTTP authorization. It is necessary to disable the authorization requirement on the /role_* pages (that is, instead of an asterisk, the text follows, for example: role_viking or role_home). The user should be able to freely access these pages without entering a password and login.
The current configuration is something like this:

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

On the Apache server, without nginx, I set up the configuration in conf. Apache file, without .htaccess.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2014-07-25
@merryjane

Try to make your own .htaccess files with the content in the location data directories:

Order Deny,Allow
Allow from all

A
Alexander Kovpashko, 2014-07-25
@sainttechnik

Something like this:

<LocationMatch "/role_*">
    Satisfy any
    Order allow, deny
    Allow from all
</LocationMatch>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question