Django services and websocket deploying in Amazon EC2 [closed]












1















I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2.



I have attached a screenshot of the server in django in Amazon EC2 that it looks that is running ok.



server screenshot



The client that is an angular app, when I'm trying to connect to the server



this.globals.socket = new WebSocket('ws://mydomain.com.com/stocks')


I'm getting this error




WebSocket connection to 'ws://mydomain.com.com/stocks' failed: Error during WebSocket handshake: Unexpected response code: 404.




Any help or clue is really appreciated.










share|improve this question















closed as too broad by DavidPostill Dec 20 '18 at 18:22


Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.




















    1















    I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2.



    I have attached a screenshot of the server in django in Amazon EC2 that it looks that is running ok.



    server screenshot



    The client that is an angular app, when I'm trying to connect to the server



    this.globals.socket = new WebSocket('ws://mydomain.com.com/stocks')


    I'm getting this error




    WebSocket connection to 'ws://mydomain.com.com/stocks' failed: Error during WebSocket handshake: Unexpected response code: 404.




    Any help or clue is really appreciated.










    share|improve this question















    closed as too broad by DavidPostill Dec 20 '18 at 18:22


    Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


















      1












      1








      1








      I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2.



      I have attached a screenshot of the server in django in Amazon EC2 that it looks that is running ok.



      server screenshot



      The client that is an angular app, when I'm trying to connect to the server



      this.globals.socket = new WebSocket('ws://mydomain.com.com/stocks')


      I'm getting this error




      WebSocket connection to 'ws://mydomain.com.com/stocks' failed: Error during WebSocket handshake: Unexpected response code: 404.




      Any help or clue is really appreciated.










      share|improve this question
















      I have a project with websockets with angular and django, it works fine locally when I have deployed to Amazon EC2.



      I have attached a screenshot of the server in django in Amazon EC2 that it looks that is running ok.



      server screenshot



      The client that is an angular app, when I'm trying to connect to the server



      this.globals.socket = new WebSocket('ws://mydomain.com.com/stocks')


      I'm getting this error




      WebSocket connection to 'ws://mydomain.com.com/stocks' failed: Error during WebSocket handshake: Unexpected response code: 404.




      Any help or clue is really appreciated.







      python amazon-ec2 django






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 20 '18 at 21:15







      Victor H

















      asked Dec 19 '18 at 21:55









      Victor HVictor H

      63




      63




      closed as too broad by DavidPostill Dec 20 '18 at 18:22


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.






      closed as too broad by DavidPostill Dec 20 '18 at 18:22


      Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.
























          0






          active

          oldest

          votes

















          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes

          Popular posts from this blog

          Plaza Victoria

          In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

          How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...