690 shaares
3 liens privés
3 liens privés
2 résultats
taggé
apache2
Ajout de règle pour laisser le répertoire acme accessible
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Include /etc/apache2/sites/demo.conf
</VirtualHost>
<VirtualHost *:443>
Include /etc/apache2/sites/demo.conf
SSLEngine on
SSLCertificateFile /etc/ssl/certs/demo.signed.crt
SSLCertificateKeyFile /etc/ssl/private/demo.key
SSLCertificateChainFile /etc/ssl/certs/letsencrypt-root-intermediate.pem
</VirtualHost>
Redirect all except let's encrypt directory
RedirectMatch Permanent "^(/(?!\.well-known/).*)" https://example.net/$1