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?

Ilan Berkner iberkner at gmail.com
Wed Jul 15 00:33:01 MSD 2009


That's the way I'll set it up.

I specify IP as well.


On Tue, Jul 14, 2009 at 4:25 PM, Michael Shadle <mike503 at gmail.com> wrote:

> 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:
> >> > >
> >> > >
> >> >
> >> >
> >
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20090714/4301e6af/attachment.html>


More information about the nginx mailing list