Update Apache2 sample configuration to allow disable password asking when we're on a private network

This commit is contained in:
Grégory Soutadé 2020-02-26 15:45:00 +01:00
parent 898e0b9e42
commit 8d39bd8ed0

View File

@ -8,10 +8,16 @@
AuthType Basic AuthType Basic
AuthName "Private" AuthName "Private"
AuthUserFile /private/_pwd/user AuthUserFile /private/_pwd/user
Options +FollowSymlinks
# Uncomment to remove password for internal network
# <RequireAny>
# Require ip 192.168.0.0/24
Require valid-user Require valid-user
# </RequireAny>
</Location> </Location>
<Location "/users/"> <Location "/users/">
Options +FollowSymlinks
Allow from all Allow from all
Satisfy Any Satisfy Any
</Location> </Location>