I have an app with node.js and express.js server and I want to provide access from 4 points:
And I am not sure what is the better approach here.
- run two servers (
https.createServer
andhttp.createServer
) and redirect all from http to https server - or make some redirect on Domain panel?
And what about 'www' vs 'non-www'? It should also be set by hosting / domain panel?
This is new area for me and I have no idea, at least I hope this is proper StackExchange forum. Any links with more explanations would be great