To enable the traffic routing from Apache to AcuToWeb Gateway, use the following steps:
"ws_compression" : 1,
LoadModule proxy_module "{APACHEPATH}/modules/mod_proxy.so"
LoadModule proxy_wstunnel_module "{APACHEPATH}/modules/mod_proxy_wstunnel.so"
# HTTP
<VirtualHost *:80>
ProxyPreserveHost On
ProxyPass / http://{ip-gateway}:{webserver_port of gateway.conf}/
ProxyPassReverse / http://{ip-gateway}:{webserver_port of gateway.conf}/
</VirtualHost>
# WebSocket
<VirtualHost *:{The port used by the client to communicate to the gateway}>
RequestHeader set Host "{ip-gateway}:{tcp_port of gateway.conf}"
ProxyPreserveHost On
ProxyPass / ws://{ip-gateway}:{tcp_port of gateway.conf}/
ProxyPassReverse / ws://{ip-gateway}:{tcp_port of gateway.conf}/
</VirtualHost>