rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.36k stars 491 forks source link

http redirect to https:// #108

Closed ghost closed 10 years ago

ghost commented 10 years ago

I have enabled https on the chatroom but when i navigate to http:// version i get an error saying "no data recieved". How can i automatically redirect to https:// when the user visits the http:// version of the website?

impronunciable commented 10 years ago

If you are using a web server (like nginx or apache) in front of node.js you can configure it to do the work. Otherwise you can create an http server (not https) and redirect all traffic to the https server.

I found this question that can be useful for you http://stackoverflow.com/questions/7450940/automatic-https-connection-redirect-with-node-js-express