No Description
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.

www.zapashcanon.fr.conf 1.0KB

123456789101112131415161718192021222324252627282930313233343536373839
  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/zapashcanon.fr/www/web
  11. <VirtualHost *:443>
  12. ServerName ${server_name}
  13. ServerAdmin ${admin_mail}
  14. ServerAlias zapashcanon.fr
  15. DocumentRoot ${doc_root}
  16. <Directory ${doc_root}>
  17. AllowOverride All
  18. Order Allow,Deny
  19. Allow from All
  20. </Directory>
  21. DirectoryIndex index.php
  22. <FilesMatch \.php$>
  23. SetHandler "proxy:unix:/run/php/php7.3-fpm.sock|fcgi://localhost/"
  24. </FilesMatch>
  25. ErrorLog ${error_log_file}
  26. CustomLog ${access_log_file} combined
  27. Protocols h2 http/1.1
  28. SSLProtocol -all +TLSv1.2
  29. SSLCertificateFile ${cert_dir}/${cert_name}/fullchain.pem
  30. SSLCertificateKeyFile ${cert_dir}/${cert_name}/privkey.pem
  31. Include /etc/letsencrypt/options-ssl-apache.conf
  32. </VirtualHost>