I have a simple application that I run using node.js. Below is my server.js:
var myApp = require('./lib/myapp')
new myApp({
port: 8000
});
I can access the application at http://myserver.com:8000
I would like to set it up, so I can access it using https://myserver.com
I have tried various methods answered in questions asked here, but I am unable to get it working. I think the way application is being initialized is the reason, but I am not sure about that.
I know I can put it behind Apache, but I would like to do it using node.
If anyone can modify this server.js for me, that would be a great help!
Thanks
Noman A.
Thanks everyone for their contribution to this question. I really appreciate all the pointers!
Special mention to JohnnyHK, whose suggestion got me on track. I was able to resolve my issue using node-http-proxy. Simple and effective! Below is how my server.js looks like now:
Thanks to everyone one again!
-Noman A.