Apache Websocket for N8N

Discussion in 'Server Operation' started by Taxi, Feb 8, 2026 at 8:08 AM.

  1. Taxi

    Taxi Member

    Hello,
    I'm running n8n within a docker container. It is accessible via subdomain and reverse proxy. I placed the Apache Directive below which does the trick to access n8n via https://n8n.example.com

    # Exclude ACME challenge from proxy
    <Location "/.well-known/acme-challenge/">
    ProxyPass !
    </Location>

    # Proxy everything else
    ProxyPreserveHost On
    ProxyPass / http://localhost:5678/
    ProxyPassReverse / http://localhost:5678/

    I can connect n8n to external services like Paypal or Mautic.
    The problem I'm experiencing is that when I'm trying to execute a workflow I'm receiving the following error from the n8n backend:
    "Problem running workflow
    Lost connection to the server"

    After searching the web I found out that it may be because of websocket issues.

    Has anyone here experienced similar problems and has a solution?

    Many thanks

    Christian
     

Share This Page