T
T
tsifra2014-01-11 22:10:58
Apache HTTP Server
tsifra, 2014-01-11 22:10:58

Apache2 site root password protected, how to make free access for url?

There is an Apache config that passwords the entire site:

<Location />
        AuthType Basic
        AuthName "Restricted access"
        AuthUserFile /home/develop/htdocs/.htpasswd
        #AuthUserFile /home/.htpasswd
        Require valid-user
    </Location>

You need to make sure that access to the url / foo is without a password. Any ideas?
This does not work
<Location /foo/>
        satisfy all
    </Location>

Tried an alternative strategy. It also failed
<LocationMatch !.*/foo.*>
        Order allow,deny
        Allow from all
        AuthType Basic
        AuthName "Restricted access"
        AuthUserFile /home/develop/htdocs/.htpasswd
        Require valid-user
        Satisfy all
    </LocationMatch>

    <LocationMatch .*/foo.*>
        Order allow,deny
        Allow from all
        Satisfy any
    </LocationMatch>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Petrusha Ukropov, 2014-01-11
@artishok

satisfy -> allow ?

Q
Qwerty Qwertyiovich, 2014-01-12
@Feirte

<Locaton /foo>
Order allow,deny (БЕЗ ПРОБЕЛА, МАТЬ ТВ*Ю)
Satisfy any
Allow from all
</Location>

Yes, and try to insert above the previous entry in the config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question