Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created September 29, 2016 13:27
Show Gist options
  • Select an option

  • Save BtbN/62442b67ba635a942c55e14264159c96 to your computer and use it in GitHub Desktop.

Select an option

Save BtbN/62442b67ba635a942c55e14264159c96 to your computer and use it in GitHub Desktop.
/etc/apache2/modules.d/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>
<Location /.well-known/acme-challenge>
<RequireAny>
Require all granted
</RequireAny>
</Location>
<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
Header always set Public-Key-Pins 'pin-sha256="YLh1dUR9y6Kja30RrAn7JKnbQG/uEtLMkBgFF2Fuihg="; pin-sha256="sRHdihwgkaib1P1gxX8HFszlD+7/gTfNvuAybgLPNis="; max-age=5184000'
</Macro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment