diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content index dadf063..8bfd9fe 100644 --- a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/50Content @@ -84,7 +84,7 @@ if ($allow ne ''){ else{ $allow =~ s/[,;]/ /g; } - $OUT .=<<"EOF" + $OUT .=<<"EOF"; Order deny,allow @@ -92,6 +92,10 @@ if ($allow ne ''){ Allow from $allow + + Allow from all + + EOF } @@ -101,9 +105,13 @@ if ($auth =~ m/^Basic$/i){ $require = "Require ldap-group "; $require .= "cn=$_,ou=Groups,$base " foreach(@groups); } - $OUT .=<<"EOF"; + SetEnvIf %{Request_URI} "^/\.well\-known/acme\-challenge" granted=1 + Order deny,allow + Satisfy any + Deny from all + Allow from env=granted AuthType basic AuthName "$name" AuthBasicProvider ldap