Closed ghost closed 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
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?