multiple listen directives

Axel ar at xlrs.de
Mon Sep 16 13:14:41 UTC 2013


Hi Igor,

Am 16.09.2013 14:17, schrieb Igor Sysoev:
>> 
>> server {
>>   listen                     192.168.178.20:443 ssl;
>>   listen                     192.168.178.30:443 ssl;
>>   listen                     192.168.178.40:443 ssl;
>>   server_name                my.example.com;
>> ...
>> ...
>> }
>> 
>> Regards, Axel
>> 
> 
> Add wildcard:
> 
>   listen                     *:443 ssl;
>   listen                     192.168.178.20:443 ssl;
>   listen                     192.168.178.30:443 ssl;
>   listen                     192.168.178.40:443 ssl;

thanks for your reply.

What happens when i add a wildcard this way? I found 
http://trac.nginx.org/nginx/ticket/187
As far as I understand this wildcard enables nginx to bind on one of the 
given interfaces? Or is this a "catch-all" for the server block?

Do I need to add this wildcard to any enabled vHost?

Regards, Axel



More information about the nginx mailing list