I'm trying to replicate nginx reverse proxy config using apache. Can someone please point me to the right direction?

Solved! All I had to do was to enable the websocket module using sudo a2enmod proxy_wstunnel.