server_name for https

Jeff Pang jeffrpang at gmail.com
Mon May 9 11:39:11 MSD 2011


2011/5/9 Cedric Jeanneret <cedric.jeanneret at camptocamp.com>:
> On Mon, 9 May 2011 14:18:09 +0800
> Jeff Pang <jeffrpang at gmail.com> wrote:
>
>> Hello,
>>
>> Since HTTPS doesn't support vhost, shall we have the need to put the
>> server_name command in the server section? for example,
>>
>>          server {
>>                 listen       443;
>>                 server_name  xxx.example.com;
>>                 ....
>>          }
>>
>> Thanks.
>>
>>
>
> o_O since when does HTTPS not support vhosts ?
>
> the only problem is when having multiple SSL vhosts on the same IP - the certificate has to cover all those vhosts.
>
> To answer your question, you shall provide:
> server_name $_;
>
> it's the default vhost
>


OK That's right thanks.
I have misunderstood the SSL Proxy maybe, now I got it.



-- 
Jeff Pang
www.DNSbed.com



More information about the nginx mailing list