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.

54 lines
1.3KB

  1. Define short_name www
  2. Define server_name ${short_name}.zapashcanon.fr
  3. Define admin_mail leo@ndrs.fr
  4. Define cert_name ${server_name}
  5. Define cert_dir /etc/letsencrypt/live
  6. Define log_dir /var/log/apache2
  7. Define log_file ${log_dir}/${short_name}
  8. Define error_log_file ${log_file}.error.log
  9. Define access_log_file ${log_file}.access.log
  10. Define doc_root /var/www/${server_name}/
  11. <VirtualHost *:443>
  12. ServerName zapashcanon.fr
  13. Redirect permanent / https://www.zapashcanon.fr/
  14. ErrorLog ${error_log_file}
  15. CustomLog ${access_log_file} combined
  16. Protocols h2 http/1.1
  17. SSLProtocol -all +TLSv1.2
  18. SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
  19. SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
  20. Include /etc/letsencrypt/options-ssl-apache.conf
  21. </VirtualHost>
  22. <VirtualHost *:443>
  23. ServerName ${server_name}
  24. ServerAdmin ${admin_mail}
  25. ServerAlias zapashcanon.fr
  26. DocumentRoot ${doc_root}
  27. <Directory ${doc_root}>
  28. AllowOverride All
  29. Order Allow,Deny
  30. Allow from All
  31. </Directory>
  32. ErrorLog ${error_log_file}
  33. CustomLog ${access_log_file} combined
  34. Protocols h2 http/1.1
  35. SSLProtocol -all +TLSv1.2
  36. SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
  37. SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
  38. Include /etc/letsencrypt/options-ssl-apache.conf
  39. </VirtualHost>