Twake on Docker behind Apache Proxy


All twake servers run on a docker on one virtual machine and Apache is running on another virtual machine all on the same physical server…
I read the documentation to setup Apache Proxy.
Everything works well thank you, except the messages which are not immediately available by the reader. The messages will appear only if the reader refresh the screen… And I continuously get you are offline…

The container port configuration of twake_nginx_01 is: 8086 -­> 80. When I connect directly to the dockerserver:8086 everything is working well including the message… But does not work if it goes through the apache proxy.

Any Idea ? Is there a proxy location missing ?


@asw20 We ran into a similar issue, but using Nginx as a reverse proxy.
It turned out to be due to proxy_redirect and proxy_buffering.

This is our working Nginx reverse proxy for Twake config, perhaps you can adapt it to work for your Apache proxy:

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 0;
    proxy_redirect off;
    proxy_buffering off;

# extra  options
add_header X-Frame-Options "SAMEORIGIN";

And maybe, if this is up to Twake’s standards, this could be added to the docs for an Nginx reverse proxy example.