1
0
Fork 0

add `apache2` config

urosm 2024-01-29 21:39:08 +01:00
parent e9902c0aa9
commit 9640c96f1f
1 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,20 @@
<VirtualHost *:80>
ServerName bavbavhaus.net
ServerAlias www.bavbavhaus.net
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.bavbavhaus.net [OR]
RewriteCond %{SERVER_NAME} =bavbavhaus.net
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName bavbavhaus.net
ServerAlias www.bavbavhaus.net
DocumentRoot /home/urosm/public_html/bavbavhaus.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/bavbavhaus.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/bavbavhaus.net/privkey.pem
</VirtualHost>