Files
sysconfig/damia/etc/apache2/sites-available/ml.faivre-all.conf
Bruno Raoult 43f89ad51f new subdomains.
crozat.faivre.ml
daniel-bremond.faivre.ml
dev.faivre.ml
ebooks.faivre.ml
famille.faivre.ml
nextcloud.faivre.ml
pelemele.faivre.ml
photos.faivre.ml
steinbach.faivre.ml
test.faivre.ml
webtrees.faivre.ml
2021-03-23 10:59:37 +01:00

85 lines
2.3 KiB
Plaintext

# all faivre.ml subdomains
<Macro faivre $name $domain>
<VirtualHost *:80>
ServerName $domain
ServerAlias www.$domain
UseCanonicalName Off
#DocumentRoot /home/www/ml.faivre/$name
CustomLog ${APACHE_LOG_DIR}/ml.faivre.$name-access.log combined
ErrorLog ${APACHE_LOG_DIR}/ml.faivre.$name-error.log
# br, feb 13, 2016. The following hack is necessary to have
# letsencrypt work in "--webroot" mode, as it does not handle
# https redirection
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]
</VirtualHost>
<VirtualHost *:443>
ServerName $domain
ServerAlias www.$domain
UseCanonicalName Off
DocumentRoot /home/www/ml.faivre/$name
CustomLog ${APACHE_LOG_DIR}/ml.faivre.$name-access.log combined
ErrorLog ${APACHE_LOG_DIR}/ml.faivre.$name-error.log
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/faivre.ml/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/faivre.ml/privkey.pem
<Location />
SSLRequireSSL On
SSLVerifyClient none
SSLVerifyDepth 1
SSLOptions +StdEnvVars +StrictRequire
</Location>
RewriteEngine on
<Directory /home/www/ml.faivre/$name>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
# Kesako ?
SSLRenegBufferSize 10486000
</Directory>
# Kesako ?
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15768000; includeSubDomains; preload"
</IfModule>
# Kesako ? Puisque mod_security2 n'est pas utilisé, je commente.
#<IfModule mod_security2.c>
# SecRequestBodyNoFilesLimit 5242880
#</IfModule>
</VirtualHost>
</Macro>
# macros: Each line is
# Use faivre <dir> <fqdn>
# with dir: /home/www/ml.faivre/<dir>
Use faivre root faivre.ml
Use faivre crozat crozat.faivre.ml
Use faivre daniel-bremond daniel-bremond.faivre.ml
Use faivre dev dev.faivre.ml
Use faivre ebooks ebooks.faivre.ml
Use faivre famille famille.faivre.ml
Use faivre nextcloud nextcloud.faivre.ml
Use faivre pelemele pelemele.faivre.ml
Use faivre photos photos.faivre.ml
Use faivre steinbach steinbach.faivre.ml
Use faivre test test.faivre.ml
Use faivre webtrees webtrees.faivre.ml
UndefMacro faivre