Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created December 4, 2015 12:48
Show Gist options
  • Select an option

  • Save BtbN/0693c5f002134643242f to your computer and use it in GitHub Desktop.

Select an option

Save BtbN/0693c5f002134643242f to your computer and use it in GitHub Desktop.
75_letsencrypt.conf
Alias /.well-known/acme-challenge /home/letsencrypt/www-root/.well-known/acme-challenge
ProxyPassMatch ^/\.well-known/acme-challenge !
<Directory /home/letsencrypt/www-root/.well-known/acme-challenge>
<RequireAny>
Require all granted
</RequireAny>
</Directory>
<Macro LetsEncrypt $domain>
Include /etc/apache2/myvhosts.d/ssl-letsencrypt.include
SSLCertificateKeyFile /etc/letsencrypt/live/$domain/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/$domain/fullchain.pem
</Macro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment