How to exclude some IP addresses from authorization

I have the following rule:

<Location />
    AuthType Basic
    AuthName test-server
    Require valid-user
    AuthUserFile /etc/apache2/passwd
</Location>

But you want to exclude some IP addresses from the authorization process, so if you connect from this address, you do not need to enter a username / password. How to do it?

+5
source share
1 answer
<Location />
    AuthType Basic
    AuthName test-server
    Require valid-user
    AuthUserFile /etc/apache2/passwd
    Deny from all
    Allow from 123.123.123.123
    Satisfy any
</Location>
+9
source

All Articles