Update Apache2 sample configuration to allow disable password asking when we're on a private network
This commit is contained in:
parent
898e0b9e42
commit
8d39bd8ed0
|
@ -8,10 +8,16 @@
|
||||||
AuthType Basic
|
AuthType Basic
|
||||||
AuthName "Private"
|
AuthName "Private"
|
||||||
AuthUserFile /private/_pwd/user
|
AuthUserFile /private/_pwd/user
|
||||||
Require valid-user
|
Options +FollowSymlinks
|
||||||
|
# Uncomment to remove password for internal network
|
||||||
|
# <RequireAny>
|
||||||
|
# Require ip 192.168.0.0/24
|
||||||
|
Require valid-user
|
||||||
|
# </RequireAny>
|
||||||
</Location>
|
</Location>
|
||||||
|
|
||||||
<Location "/users/">
|
<Location "/users/">
|
||||||
|
Options +FollowSymlinks
|
||||||
Allow from all
|
Allow from all
|
||||||
Satisfy Any
|
Satisfy Any
|
||||||
</Location>
|
</Location>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user