httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shu Hung (Koala)" <>
Subject [users@httpd] Using go-websocket behind Apache mod_proxy_wstunnel
Date Fri, 13 Sep 2013 18:51:32 GMT
Dear all,

I have encountered problem to make mod_proxy_wstunnel with my golang based
websocket server. The server works fine without the reverse proxy, but it
fails behind proxy.

My Apache config looks similar to this:
<VirtualHost *:80>
    DocumentRoot /var/www/foobar
    ProxyPass / http://localhost:8080/
    ProxyPassReverse / http://localhost:8080/
    ProxyPass /ws/ ws://localhost:8080/ws/
    ProxyPassReverse /ws/ ws://localhost:8080/ws/
    ErrorLog logs/error_log-foobar
    CustomLog logs/access_log-foobar common
    LogLevel debug

And of course I'm running the chat server on port 8080. I've tested it with
SSH tunnel, and things work perfectly. Then I moved on to Apache.

The first time I tried, the javascript console complains this:
*NetworkError: 403 Forbidden -*

The request seems to be stucked at the origin check. Then I tried again
after comment out the origin check, it get this:
*NetworkError: 400 Bad Request -*

It seems the chat server do not get the upgrade request at all.

How should I debug this? Where should I start looking?

I've filed a question in StackOverflow:

Please help by answering this mail or comment there.

View raw message