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.
24 lines
721 B
24 lines
721 B
3 years ago
|
<VirtualHost *:80>
|
||
|
ServerName {{ site_url }}
|
||
|
Redirect permanent / https://{{ site_url }}/
|
||
|
</VirtualHost>
|
||
|
<VirtualHost *:443>
|
||
|
ServerName {{ site_url }}
|
||
|
DocumentRoot /var/www/html/{{ site_url }}
|
||
|
|
||
|
<Directory "/var/www/html/{{ site_url }}">
|
||
|
Order Allow,Deny
|
||
|
Allow from All
|
||
|
AllowOverride All
|
||
|
Require all granted
|
||
|
</Directory>
|
||
|
|
||
|
SSLEngine on
|
||
|
SSLCertificateFile "{{ letsencrypt_certs_dir }}/{{ site_url }}.crt"
|
||
|
SSLCertificateKeyFile "/etc/letsencrypt/keys/{{ site_url }}.key"
|
||
|
|
||
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||
|
</VirtualHost>
|
||
|
|