P
P
Puma Thailand2013-07-15 15:33:31
Nginx
Puma Thailand, 2013-07-15 15:33:31

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

3 answer(s)
M
Maxim Klyushkov, 2013-07-15
@opium

Try adding: listen 443 ssl ;

K
kenny_opennix, 2013-07-23
@kenny_opennix

virtual hosts.

  listen 123.123.123.123:443;
server_name test;
ssl on;
ssl_protocols SSLv3 TLSv1; 

For the second
 listen 123.123.123.123:443;
server_name test2;
ssl on;
ssl_protocols SSLv3 TLSv1; 

we do include of configuration files and all happiness.

A
Alex Chistyakov, 2014-09-30
@AnImAsHkO

^(\/[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 question

Ask a Question

731 491 924 answers to any question