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.

38 lines
981 B

Define short_name bomberman
Define server_name ${short_name}
Define admin_mail
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}/src
<VirtualHost *:80>
RewriteEngine on
RewriteCond %{SERVER_NAME} =${server_name}
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName ${server_name}
ServerAdmin ${admin_mail}
DocumentRoot ${doc_root}
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