Multiple SSL certificates

Thomas iamkenzo at gmail.com
Tue Oct 21 17:37:54 MSD 2008


Now my config file looks like this:

server {
listen 80;
server_name www.site1.com;
}

server {
listen 80;
server_name www.site2.com;
}

server {
listen IP1:443;
server_name www.site1.com;
}

server {
listen IP2:443;
server_name www.site2.com
}

And Nginx is running and there is no longer any error message. I am
not sure what made it work, but I also tweaked at my domain name
registrar the IP address of the domain name site2.com it now points to
IP2 (it used to point to IP1).

Now if I visit http://www.site1.com or site2.com, it works.

But if I visit https://www.site1.com or site2.com, Firefox tells me
that he can't make the connection, and nothing gets printed in any log
file.

If I type https://IP1 or https://IP2, it doen't work either.

I have also tested the following config:
--
server {
listen IP1:80;
}

And entering http://www.site1.com or http://IP1 doesn't work anymore!
What's happening, is the "listen IP:Port" correctly working with Nginx
0.6.32? I am starting to wonder.





More information about the nginx mailing list