add `apache2` config
parent
e9902c0aa9
commit
9640c96f1f
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue