1
0
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
urosm cdcdf13a0e update `fail2ban` config 2024-01-29 21:39:22 +01:00
urosm 9640c96f1f add `apache2` config 2024-01-29 21:39:08 +01:00
2 changed files with 21 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>

View File

@ -1,5 +1,6 @@
[DEFAULT]
bantime = 1d
backend = systemd
[sshd]
enabled = true