Browse Source

fix apache conf

master
zapashcanon 4 months ago
parent
commit
18caabfdb8
Signed by: zapashcanon <leo@ndrs.fr> GPG Key ID: 8981C3C62D1D28F1
1 changed files with 18 additions and 0 deletions
  1. +18
    -0
      www.zapashcanon.fr.conf

+ 18
- 0
www.zapashcanon.fr.conf View File

@@ -9,6 +9,24 @@ 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}

Loading…
Cancel
Save