Using the following details:
tcp-port | 8008 (the default) |
webserver_port | 3000 (the default) |
Apache HTTP port | 80 (the default) |
WebSocket port | 8010 |
Amend the httpd.conf file as follows:
# HTTP <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </VirtualHost> # WebSocket <VirtualHost *:8010> RequestHeader set Host "localhost:8008" ProxyPreserveHost On ProxyPass / ws://localhost:8008/ ProxyPassReverse / ws://localhost:8008/ </VirtualHost>
When opening the application in a browser, the URL must contain portgw=<port_num> (<port_num> in this instance is set as 8010 but can be any valid port number, except the same number as tcp_port)