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.
 
 
 

47 lines
1.2 KiB

Define short_name www
Define server_name ${short_name}.zapashcanon.fr
Define admin_mail contact@ndrs.fr
Define cert_dir /etc/letsencrypt/live
Define cert_name ${server_name}
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
<VirtualHost zapashcanon.fr:443>
ServerName zapashcanon.fr
Redirect permanent / https://www.zapashcanon.fr/
ErrorLog ${error_log_file}
CustomLog ${access_log_file} combined
Protocols h2 http/1.1
SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
<VirtualHost www.zapashcanon.fr:443>
ServerName ${server_name}
ServerAdmin ${admin_mail}
ServerAlias zapashcanon.fr
ProxyPass / http://localhost:3069/
ProxyPassReverse / http://localhost:3069/
ProxyRequests Off
ErrorLog ${error_log_file}
CustomLog ${access_log_file} combined
Protocols h2 http/1.1
SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>