Connection lost on Workflow - apache2 reverse proxy with traefik

Hi,

we are trying to setup our new n8n environment for the first time.

Our setup:
We have one external ip where we have already a apache2 web server in charge of all http/https request. Our n8n programmer is in charge of the n8n vm which uses traefik to redirect the traffic to the n8n container.

traefik:v3.4.1                  "/entrypoint.sh trae…"   12 days ago   Up 15 hours   0.0.0.0:80->80/tcp, [::]:80->80/tcp, 0.0.0.0:443->443/tcp, [::]:443->443/tcp   traefik

I already found some useful config examples:

We still facing the issue that the connection is lost every second. For a part of a second the connection is ok and suddenly the connection is lost again.

Here are our config from there apache2 web server:

<VirtualHost *:443>
        ServerName automation.toplevel.de

        SSLEngine       On
        SSLProxyEngine  On
        ProxyRequests   Off
        ProxyPreserveHost       On

        TimeOut 600
        KeepAliveTimeout 600

        SSLProxyVerify none
        SSLProxyCheckPeerCN off
        SSLProxyCheckPeerName off
        SSLProxyCheckPeerExpire off

        <Proxy *>
                Require all granted
        </Proxy>

        RewriteEngine On
        RewriteCond %{HTTP:Upgrade} =websocket [NC]
        RewriteRule /(.*)           wss://192.168.50.10/$1 [P,L]
        RewriteCond %{HTTP:Upgrade} !=websocket [NC]
        RewriteRule /(.*)           https://192.168.50.10/$1 [P,L]
        ProxyPassReverse /          https://automation.toplevel.de
                
        ErrorLog /var/log/apache2/automation.toplevel.de-error.log
        CustomLog /var/log/apache2/automation.toplevel.de-access.log combined

</VirtualHost>

thank you in advance
cheers, Timm