You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've succesfully managed to get apache2 to understand websockets with the default example (*_echo.so)
http://foo/client.html (works, occasionally disconnect problem solved by increasing the body timeout like so:
RequestReadTimeout body=500,minrate=1
So then I tried to det everything running over SSL. I get a 403 error running the regular example, probably because the example code doesn't attempt to open a wss:// websocket. Meh, I know things work...
I then tried to proxy the excellent GateOne through the websocket. The setup is as below:
python gateone.py --diasble-ssl --url-prefix="/term/"
Gateone host: foo:port/term
When gateone initialises, it attempts to connect to a websocket at: wss://foo/term/ws
So, in my httpd.conf (protocols disabled to ensure testing compatibility):
If you use the client.html file for testing the echo WebSocket connection, it should work with https. It does use wss if the initial connection was https. I just double checked, and it does work with https/wss as expected. What browser are you using? Get that working first. One thing to check is that your certificate has not expired. Also, I've seen some instances where Chrome will not connect if the certificate is not trusted.
I ran into this same issue with Chrome (Opera and Firefox work fine)
This seems to be unrelated to SSL, I tried disabling and using a reverse proxy setup similar to that above through a non-ssl http port, getting the same results, the request stalls at 101 Switching Protocols.
Interesting note though, this happens while using mod_websocket. In my particular scenario, when using mod_websocket_draft76 I get a WebSocket handshake error due to the Sec-WebSocket-Accept header being missing, Firefox also fails, probably for the same reason.
Opera seems to work fine with either module.
Hi,
I've succesfully managed to get apache2 to understand websockets with the default example (*_echo.so)
http://foo/client.html (works, occasionally disconnect problem solved by increasing the body timeout like so:
RequestReadTimeout body=500,minrate=1
So then I tried to det everything running over SSL. I get a 403 error running the regular example, probably because the example code doesn't attempt to open a wss:// websocket. Meh, I know things work...
I then tried to proxy the excellent GateOne through the websocket. The setup is as below:
python gateone.py --diasble-ssl --url-prefix="/term/"
Gateone host: foo:port/term
ProxyPass /term 127.0.0.1:port
ProxyPassReverse /term http://127.0.0.1:port
When gateone initialises, it attempts to connect to a websocket at: wss://foo/term/ws
So, in my httpd.conf (protocols disabled to ensure testing compatibility):
The problem is, I see in Chrome's activity that the websocket request (/term/ws) hangs at 101 (Switching Protocols).
Request URL:wss://foo/term/ws
Request Method:GET
Status Code:101 Switching Protocols
Sent headers:
Connection:Upgrade
Cookie:gateone_user=[snip]
Host:foo
Origin:https://foo
Sec-WebSocket-Key:4pNAoAlFCIbh/hjyaJAluA==
Sec-WebSocket-Version:13
Upgrade:websocket
(Key3):00:00:00:00:00:00:00:00
Response:
Connection:Upgrade
Sec-WebSocket-Accept:lQTZh4RECkdDfTJhlYPymy4zC1Y=
Upgrade:websocket
(Challenge Response):00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
Is there anything you can think of that could be causing this to hang? Do you know where I might be able to get some help please?
Thanks!
The text was updated successfully, but these errors were encountered: