TLS / Port 443 and / pointing to default site

Hello,

thanks for your advice. I added the the lines concerning the Rewrite Engine to /etc/apache2/sites-enabled/000-default as it indicated by the link you showed me. After that I enabled the Headers Module because the last line’s “RequestHeader” would not work otherwise.

Knowing that I would need to to add the appropriate key and certificate I added the following lines to the file mentioned above:

<VirtualHost *:443>

SSLCertificateFile /etc/apache2/ssl/wildcard.consulting1x1.info.2021.crt

SSLCertificateKeyFile /etc/apache2/ssl/wildcard.consulting1x1.info.2021.key

apachectl -t says the syntax is correct but the webserver throws an error and says: ERR_SSL_PROTOCOL_ERROR

I guess I have to add the the lines regarding SSL into another file. Can you point out which file I have to edit to get working TLS with Apache listening on Port 443? Are there any additional edits I have to make to enable TLS?

Yours sincerely
Stefan