Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to work with Apche 2.4 - 400 Bad request for Handshake request #43

Open
psaxena opened this issue Sep 10, 2020 · 0 comments
Open

Comments

@psaxena
Copy link

psaxena commented Sep 10, 2020

Hi,

We're using this module since long with Apache 2.2 in our application. Now we want to support this with Apache 2.4. But, i get 400 bad request when connecting with Apache 2.4. Here is what my connection request looks like:
Apache 2.2

Websockets Event Test
...
GET /testapp/events/jobsfef21e7bef018bae49d50f241794373c7eb HTTP/1.1`
Upgrade: WebSocket
Connection: Upgrade
Host: localhost:
Origin: http://localhost
Sec-WebSocket-Key1: u2zi1r8S27*Rh148S !4d1
Sec-WebSocket-Key2: .24    !04_ 6 x68 q |4r96|

�&�j��8<
[INFO] WEB SOCKET.rb line -> HTTP/1.1 101 WebSocket Protocol Handshake
Events published...

And with Apache 2.4:

GET /testapp2/api/v4/events?receive[]=ones HTTP/1.1
Upgrade: WebSocket
Connection: Upgrade
Host: 10.210.166.92:
Origin: http://{IP_ADD}
Sec-WebSocket-Key1: 1@ _  2 3 107  6H 19   8GP
Sec-WebSocket-Key2: m2  O40  4z 455[ YUm4m 8P7d

C¶▼��/◄�
[INFO] WEB SOCKET.rb line -> HTTP/1.1 400 Bad Request
ws_client is NIL...

Handshake request doesn't seem to reach this apache plugin init method.

Want to check

  1. If we do need to compile module with Apache 2.4 to make it work? Or module compiled with Apache 2.2 will work?
  2. Any other config setting required with Apache 2.4?

Thanks,
pooja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant