D
D
dfhusfhgsuo32020-12-30 12:48:16
Nginx
dfhusfhgsuo3, 2020-12-30 12:48:16

How to use SSL on additional ports?

Hello.

There is a certificate for the domain.com domain, there is a node js application on the port domain.com:1111/dosomething

Everything works, only on domain.com:1111/dosomething , but you need it on https://domain.com:1111/dosomething

the certificate works correctly without a port, it gives an error with the port.

How to add support for a second port for SSL?

nginx + apache

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Korotenko, 2020-12-30
@firedragon

Somewhere something like this
https://stackoverflow.com/questions/50591202/nginx...

K
ky0, 2020-12-30
@ky0

In the standard way, by adding a server block in nginx with a listen on the port you need.
But in general, they don’t do this - if you need to encrypt some communication separate from the main site - they are separated by url, and not by port.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question