Hey,
I lost my VServer and my Backup of config. I created a Vhost in apache2 for my Domain www.mydomain.de and a Vhost for the mailcow docker as mail.mydomain.de (reverse proxy).
What is wrong so I open mail.mydomain.de I see my website and not the mailcow UI.
Here are my configuration files:
mailcow.conf:
`HTTP_PORT=8080
HTTP_BIND=127.0.0.1
HTTPS_PORT=8433
HTTPS_BIND=127.0.0.1mail.mydomain.de.conf apache2:
<VirtualHost :80>
DocumentRoot /var/www/html/
ServerName mail.mydomain.de
ServerAlias autodiscover.
ServerAlias autoconfig.*
RewriteEngine on
RewriteCond %{HTTP_HOST} autoconfig. [NC]
RewriteRule ^ -
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}# [L,NE,R=permanent]
RewriteRule ^ /autoconfig.php [PT]
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ProxyPreserveHost On
ProxyAddHeaders On
RequestHeader set X-Forwarded-Proto “http”
RewriteCond %{SERVER_NAME} =mydomain.de [OR]
RewriteCond %{SERVER_NAME} =autodiscover.* [OR]
RewriteCond %{SERVER_NAME} =autoconfig.*
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
<VirtualHost *:443>
ServerName mail.mydomain.de
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
ProxyPreserveHost On
ProxyAddHeaders On
RequestHeader set X-Forwarded-Proto “https”
SSLCertificateFile /etc/letsencrypt/live/www.mydomain.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/www.mydomain.de/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>`