Closed rutaihwa closed 9 years ago
I cloned your project and ran it. It works fine :-) Note: I edited this after realizing my browser was caching my projects redirects.
To access the tls server, just go to https://localhost:8001/home and your page is encrypted. Plus, your web connection localhost:8000/home works too. So, your connections are fine.
When I started your server, the server connections both printed out. The below worked fine:
var web = server.connections[0];
var webTls = server.connections[1];
// Logging started server
console.log('Web server started at: ' + web.info.uri);
console.log('WebTLS server started at: ' + webTls.info.uri);
If you want another way to access these connections:
var web = server.select('web');
var web-tls server.select('web-tls');
You now need to add redirect code to your server. Enforce all http requests go to https.
@zoe-1 I know what i was doing wrong, i had completely ignored starting the localhost with https, bad habits of just using http in localhost. It now work on my end. Thanks!
@rutaihwa glad you solved it :-)
I have tried to configure the tls connection as per #144 on my commit here but whenever I try to access the web-tls, I get no response, when am I doing wrong?