2

I'm having trouble getting AWS EB to work with websockets. I've seen this question and have set the protocol to TCP. I've also been reading this article but I'm not sure if it's still relevant.

Any suggestions on what I could be missing? So far whenever I try to set up a websocket I just get a 404 response. Not sure if it's relevant but I'm also accessing the instance over https.

Let me know if any other information is necessary! Thanks!

3
  • did you check the security group? Commented Mar 17, 2017 at 1:49
  • I'm looking at it now... what should it be? I have a HTTP listener on port 80 and custom TCP listener on port 8443. Commented Mar 17, 2017 at 2:25
  • you should open ports 80 and 8443 Commented Mar 17, 2017 at 3:53

1 Answer 1

0

Try adding a config file in your .ebextensions/ that specifies the settings below, as described here.

proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; 

[edited to add specifics from the link]

Sign up to request clarification or add additional context in comments.

1 Comment

Please add the information behind the link, not just the link. Websites can disappear or get reorganized.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.