Answer the question
In order to leave comments, you need to log in
How to hang certificates on ip addresses in nginx?
For example, there are two ip on the server, two different sites.
Configured for the first site
listen 443;
server_name test;
ssl on;
ssl_protocols SSLv3 TLSv1;
For the second
listen 443;
server_name test2;
ssl on;
ssl_protocols SSLv3 TLSv1;
When I open test/
And when I open test2/ , a certificate from molecule.asia is also issued
Answer the question
In order to leave comments, you need to log in
virtual hosts.
listen 123.123.123.123:443;
server_name test;
ssl on;
ssl_protocols SSLv3 TLSv1;
listen 123.123.123.123:443;
server_name test2;
ssl on;
ssl_protocols SSLv3 TLSv1;
^(\/[A-Za-z][A-Za-z0-9-_]*)*/?$
And, each new section with the same letter is the correct option.
Now there can be a slash at the end - it's even better
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question