T
T
triadecom2019-05-04 09:31:55
Nginx
triadecom, 2019-05-04 09:31:55

How to set up node paired with nginx?

Starting from the beginning: There is a server on nginx (ubuntu 16.04), on which I need to run separate pages on node.js
The problem is that the whole site is written on basic html + css pages, this thing works on port 443, in fact, ssl certificates already work too, and normal, signed by the certificate authority.
But node only manages to run on a separate port 3000 using standard http, which doesn't work for me. I want to run node pages on native port 443, with certificates already configured and simple html pages. How can I solve this problem?
If you look at one particular example, then I need to organize work with the vk callback api, which requires normal ssl certificates, and will not send anything to :30000. What should I do in this case? VK simply will not send to: 3000 nothing.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-05-04
@triadecom

nginx (443) -> node(3000)
actually from such a scheme it will be easier for you to search for info
then go here
and take the first link
after that life is getting better and the solution is just flying in :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question