Apache2 and N8N


I would like that all my n8n traffic to be accessible via an apache server.
The thing is it is working fine but I can also have access to n8n traffic through http…
Is there a way to disable it?

BTW, i am using a desktop version.

Thanks a lot

Hi @herrT15, you can technically operate n8n desktop behind an apache server acting as a reverse proxy, but this is not an officially documented scenario. @Jon suggested a possible config at Host n8n in a server where apache is also running - #6 by Jon which you might want to try out. Keep in mind that the n8n desktop app is by default listening on port 5679 rather than 5678.

If you simply close the the ports other than the ports used by your apache web server (most likely 80 and 443), you’d also prevent other machines in your network from accessing n8n via the insecure HTTP protocol.

For suggested server configurations you might also want to check out our documentation (though these approaches wouldn’t use Apache as the reverse proxy).