Created
September 29, 2016 13:27
-
-
Save BtbN/62442b67ba635a942c55e14264159c96 to your computer and use it in GitHub Desktop.
/etc/apache2/modules.d/75_letsencrypt.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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