Always add letsencrypt alias

so if a domain has letsencrypt support disabled, but has at least one hostname attached to this domain with letsencrypt enabled, it can validate its challenge
tags/smeserver-letsencrypt-client-0.2.4-1 0.1.8_el5
Daniel Berteaud 9 years ago
parent 2417beb270
commit 73a2dbcaf8
  1. 9
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/80Letsencrypt
  2. 9
      root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/WebAppVirtualHost/80Letsencrypt

@ -1,13 +1,4 @@
{
if (($domain->prop('Letsencrypt') || 'enabled') ne 'disabled' && ((${'httpd-e-smith'}{'TCPPort'} || '80') eq $port)){
$OUT .=<<"_EOF";
Alias /.well-known/acme-challenge/ /var/lib/letsencrypt.sh/challenges/ Alias /.well-known/acme-challenge/ /var/lib/letsencrypt.sh/challenges/
<Location /.well-known/acme-challenge/> <Location /.well-known/acme-challenge/>
Allow from all Allow from all
</Location> </Location>
_EOF
}
else{
$OUT .= "# Support for Letsencrypt is disabled on this domain\n";
}
}

@ -1,13 +1,4 @@
{
if (($domain->prop('Letsencrypt') || 'enabled') ne 'disabled' && ((${'httpd-e-smith'}{'TCPPort'} || '80') eq $port)){
$OUT .=<<"_EOF";
Alias /.well-known/acme-challenge/ /var/lib/letsencrypt.sh/challenges/ Alias /.well-known/acme-challenge/ /var/lib/letsencrypt.sh/challenges/
<Location /.well-known/acme-challenge/> <Location /.well-known/acme-challenge/>
Allow from all Allow from all
</Location> </Location>
_EOF
}
else{
$OUT .= "# Support for Letsencrypt is disabled on this domain\n";
}
}

Loading…
Cancel
Save