File: //etc/apache2/sites-enabled/hellskitchenshtiebel.org.conf
# https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-ubuntu-20-04-ru
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName hellskitchenshtiebel.org
ServerAlias www.hellskitchenshtiebel.org
DocumentRoot /var/www/hellskitchenshtiebel.org
<Directory /var/www/hellskitchenshtiebel.org/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_hellskitchenshtiebel_80.log
CustomLog ${APACHE_LOG_DIR}/access_hellskitchenshtiebel_80.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =hellskitchenshtiebel.org [OR]
RewriteCond %{SERVER_NAME} =www.hellskitchenshtiebel.org
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName hellskitchenshtiebel.org
ServerAlias www.hellskitchenshtiebel.org
DocumentRoot /var/www/hellskitchenshtiebel.org
SSLEngine on
ErrorLog ${APACHE_LOG_DIR}/error_hellskitchenshtiebel_443.log
CustomLog ${APACHE_LOG_DIR}/access_hellskitchenshtiebel_443.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/hellskitchenshtiebel.org/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/hellskitchenshtiebel.org/privkey.pem
</VirtualHost>