35 lines
817 B
Text
35 lines
817 B
Text
<VirtualHost 127.0.0.1:80 [::2]:80>
|
|
ServerName site.de
|
|
ServerAlias www.site.de
|
|
ServerAdmin webmaster@site.de
|
|
|
|
include /etc/apache2/vhosts.d/site.include
|
|
|
|
# This checks to make sure the connection is not already HTTPS
|
|
# RewriteEngine on
|
|
RewriteCond %{HTTPS} off
|
|
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
|
|
|
|
</VirtualHost>
|
|
|
|
<IfModule mod_ssl.c>
|
|
<VirtualHost 127.0.0.1:443 [::2]:443>
|
|
|
|
SSLEngine on
|
|
SSLCertificateFile /etc/dehydrated/certs/site.de/fullchain.pem
|
|
SSLCertificateKeyFile /etc/dehydrated/certs/site.de/privkey.pem
|
|
SSLUseStapling On
|
|
|
|
ServerName site.de
|
|
ServerAlias www.site.de
|
|
ServerAdmin webmaster@site.de
|
|
|
|
Header always set Strict-Transport-Security "max-age=31536000;"
|
|
|
|
include /etc/apache2/vhosts.d/site.de.include
|
|
|
|
|
|
</VirtualHost>
|
|
|
|
</IfModule>
|
|
|