Hi, I have got the following problem:
I want to host multiple websites from my home and to realize that
-
I bought an IP: serverwolf.de and connected it to my FritzBox: (Connection works fine)
filme.serverwolf.de CNAME ly5xsl2tbp9n23dj.myfritz.net
also got rid of DNS Rebind in the FritzBox -
Created Reverse Proxy in Apache Debian 10 with Certbot
(The reverse Proxy points to another server in my Lan network)<VirtualHost *:80> ServerName filme.serverwolf.de ProxyPreserveHost On DocumentRoot /var/www/html #redirect to https #Redirect permanent / https://filme.serverwolf.de/ # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. ProxyPass /.well-known ! ProxyPass / http://192.168.178.94:8096/ ProxyPassReverse / http://192.168.178.94:8096/ RewriteEngine on RewriteCond %{SERVER_NAME} =filme.serverwolf.de RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] </VirtualHost>
certbot then created
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName filme.serverwolf.de
ProxyPreserveHost On
DocumentRoot /var/www/html
#redirect to https
#Redirect permanent / https://filme.serverwolf.de/
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
ProxyPass /.well-known !
ProxyPass / http://192.168.178.94:8096/
ProxyPassReverse / http://192.168.178.94:8096/
SSLCertificateFile /etc/letsencrypt/live/filme.serverwolf.de-0001/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/filme.serverwolf.de-0001/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
- When I try to access the website now it tells me
I think the problem is, that the certificate is signed for ly5xsl2tbp9n23dj.myfritz.net, not the actual URL I am using (https://filme.serverwolf.de/). This setup was working twice for some time but eventually it stopped working after some time (< few Hours). I am pretty new to all this and really don't know what to do here. Maybe someone has an Idea how I can fix my Problem?
Thank you in advance!
Simon Wolf