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