Certificate issue on two IP-addresses with same port

Cliff Wells cliff at develix.com
Wed Feb 20 13:58:15 MSK 2008


On Wed, 2008-02-20 at 11:29 +0100, Martin Schöttler wrote:

> - I connected different domains to that addresses (gedis-intern.de -> 
> 85.214.47.37, gedis-second.de -> 85.214.56.139
> - I configured two vhosts for nginx to listen on
>    - listen 443; server_name secure.gedis-intern.de;
>    - listen 443; server_name  secure.ticket-db.gedis-second.de;

You have to configure the address, otherwise they will both try to
connect to all interfaces:

   server {
       server_name gedis-intern.de;
       listen 85.214.47.37:443;
       # ...
   }

   server {
       server_name gedis-second.de;
       listen 85.214.56.139:443;
       # ...
   }


Regards,
Cliff






More information about the nginx mailing list