bm39.eu domains in unique file and /.well-known becomes global alias

This commit is contained in:
2021-03-22 08:53:14 +01:00
parent 960fd5b80f
commit 85dcf07260
9 changed files with 91 additions and 22 deletions

View File

@@ -3,15 +3,12 @@
ServerAlias www.faivre.ml
DocumentRoot /var/www/html
#Redirect permanent / https://faivre.ml/
RedirectMatch permanent ^(?!/\.well-known/acme-challenge/).* https://faivre.ml$0
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
ErrorLog ${APACHE_LOG_DIR}/faivre.ml-error.log
CustomLog ${APACHE_LOG_DIR}/faivre.ml-access.log combined
Alias /.well-known/ /home/www/well-known/.well-known/
<Directory /home/www/well-known/>
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
@@ -38,8 +35,6 @@
# SSLCertificateFile directive is needed.
SSLCertificateFile /etc/letsencrypt/live/faivre.ml/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/faivre.ml/privkey.pem
SSLCertificateFile /etc/letsencrypt/live/www.faivre.ml/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.faivre.ml/privkey.pem
# Certificate Authority (CA):
# Set the CA certificate verification path where to find CA
@@ -57,7 +52,7 @@
SSLVerifyDepth 1
SSLOptions +StdEnvVars +StrictRequire
</Location>
<Directory /var/www>
<Directory /var/www/html/faivre>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted