E
E
Erik Mikoyan2020-08-22 18:11:09
Apache HTTP Server
Erik Mikoyan, 2020-08-22 18:11:09

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

1 answer(s)
D
Dmitry Belyaev, 2020-08-22
@bingo347

https://docs.nginx.com/nginx/admin-guide/webserve...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question