CentOS 7
Sponsored Link

Use mod_proxy_wstunnel
Enable mod_proxy_wstunnel module to set WebSocket Proxy.
[1] For example, configure httpd to set proxy on /chat for an application which listens on localhost:1337.
The sample application is from here (section [3]).
[[email protected] ~]#
vi /etc/httpd/conf.modules.d/00-proxy.conf
# add to the end

LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
[[email protected] ~]#
vi /etc/httpd/conf.d/wstunnel.conf
# create new

ProxyRequests Off
<Proxy *>
    Require all granted

ProxyPass /socket.io/
ProxyPassReverse /socket.io/

ProxyPass /chat
ProxyPassReverse /chat

[[email protected] ~]#
systemctl restart httpd

[2] If SELinux is enabled, change rules like follows.
[[email protected] ~]#
semanage port -a -t http_port_t -p tcp 1337

[3] Access to the sample App to make sure it works normally on proxy environment.