You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

53 lines
1.3 KiB

Define short_name www
Define server_name ${short_name}.zapashcanon.fr
Define admin_mail leo@ndrs.fr
Define cert_name ${server_name}
Define cert_dir /etc/letsencrypt/live
Define log_dir /var/log/apache2
Define log_file ${log_dir}/${short_name}
Define error_log_file ${log_file}.error.log
Define access_log_file ${log_file}.access.log
Define doc_root /var/www/${server_name}/
<VirtualHost *:443>
ServerName zapashcanon.fr
Redirect permanent / https://www.zapashcanon.fr/
ErrorLog ${error_log_file}
CustomLog ${access_log_file} combined
Protocols h2 http/1.1
SSLProtocol -all +TLSv1.2
SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost *:443>
ServerName ${server_name}
ServerAdmin ${admin_mail}
ServerAlias zapashcanon.fr
DocumentRoot ${doc_root}
<Directory ${doc_root}>
AllowOverride All
Order Allow,Deny
Allow from All
</Directory>
ErrorLog ${error_log_file}
CustomLog ${access_log_file} combined
Protocols h2 http/1.1
SSLProtocol -all +TLSv1.2
SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>