setting up ssl ... can the same server section listen on both ports 80 and 443 or do I need to setup a separate server section?

Michael Shadle mike503 at gmail.com
Wed Jul 15 00:25:00 MSD 2009


ideally it would be listen 1.2.3.4:443 default ssl; right?

otherwise this block will be the default ssl host for anything else unmatched.

i typically use ip:443 in all my ssl stuff to ensure i am only going
to serve up the cert on the proper sites anyway.

On Tue, Jul 14, 2009 at 1:16 PM, Maxim Dounin<mdounin at mdounin.ru> wrote:
> Hello!
>
> On Tue, Jul 14, 2009 at 04:06:57PM -0400, Ilan Berkner wrote:
>
>> If you can point it out to me... I searched, can't find it.
>
> http://wiki.nginx.org/NginxHttpCoreModule#listen
>
> server {
>    listen 80;
>    listen 443 default ssl;
>
>    ...
> }
>
> Maxim Dounin
>
>
>>
>> On Tue, Jul 14, 2009 at 3:58 PM, Michael Shadle <mike503 at gmail.com> wrote:
>>
>> > someone just posted a config example in the past couple days about this
>> >
>> > On Tue, Jul 14, 2009 at 11:14 AM, Ilan Berkner<iberkner at gmail.com> wrote:
>> > >
>> > >
>> >
>> >
>
>





More information about the nginx mailing list