WebFaction
Community site: login faq

I have a nodejs + express app with socket io for web sockets, initially i was able to get it working when i was on http, but now that i have activated https with a purchased cert, browsers are blocking my custom app socket which is on http(Due to barring mixed content i.e https and http). So i am trying to get socket io to work over https but its proving difficult.

asked 12 Jun '15, 17:44

Big Bee
1114
accept rate: 0%

edited 12 Jun '15, 17:47


If you have checked the "Open Port" box for the application then the assigned port for the application would have that port opened on the firewall and utilizing the Shared Ports IP Address, which has a "‡" after it, your application would have to handle SSL negotiations.

If you have not checked the "Open Port" box or you are using the shared IP address of the server, which is identified by the "†" after it, the front end nginx server would handle the SSL negotiations and then send the traffic to your application.

In both cases the url should look like https://example.com. In general if it is the same application for http and https then the front end nginx server will send traffic to that port.

permanent link

answered 12 Jun '15, 18:13

aaront ♦♦
7664
accept rate: 27%

edited 12 Jun '15, 18:21

Thanks for the quick response, i opened the port but now that i know what it entails i will work with your suggestion and then get back to you.

(12 Jun '15, 18:18) Big Bee

Thanks with your tips i have moved my ssl negotiations over to my node express app, still trying to get socket io to connect. I guess i am now closer to resolving it.

(12 Jun '15, 21:51) Big Bee

Got it working thank you

(13 Jun '15, 13:22) Big Bee

Glad to hear that you got it working!

(13 Jun '15, 13:34) aaront ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×75
×67
×27
×8

question asked: 12 Jun '15, 17:44

question was seen: 3,035 times

last updated: 13 Jun '15, 13:34

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM