Answer the question
In order to leave comments, you need to log in
How to properly host a nodejs express server on a virtual remote server?
Hello. I'm desperate.
At the moment, I have an express.js server that simply sends a non-static page via res.sendFile in response to a get request.
This works over http but doesn't work over https and so I think it's wrong.
How is it really supposed to be done? Put the page in var/www/html_public, start the server on a different port, and just make requests to the server on that port?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question