diff --git a/scripts/vhost b/scripts/vhost index d5b8f4a..d72fcd9 100644 --- a/scripts/vhost +++ b/scripts/vhost @@ -29,14 +29,9 @@ AuthName "Restricted" AuthUserFile HOME_DIR/XXX/.htpasswd AuthType Basic - require valid-user - - Order Deny,Allow - Deny from all + Require valid-user #Include /etc/apache2/ipaddr_whitelist.conf - - Satisfy any # user - group (thanks to sesse@debian.org) diff --git a/scripts/vhost-default b/scripts/vhost-default index 891d25f..176f3d5 100755 --- a/scripts/vhost-default +++ b/scripts/vhost-default @@ -7,9 +7,9 @@ Options FollowSymLinks AllowOverride None - Deny from all - - #Allow from XXX.XXX.XXX.XXX + Require all denied + #Comment the previous directive when enabling the next + #Require ip XXX.XXX.XXX.XXX @@ -41,11 +41,11 @@ # # Options FollowSymLinks # AllowOverride Limit - # Allow from all + # Require all granted # - deny from all + Require all denied