Welcome! Log In Create A New Profile

Advanced

Re: Using http/https in a single server block ("ssl" parameter for "listen")

April 03, 2009 09:20AM
On Fri, Apr 03, 2009 at 12:47:51PM +0200, Daniel Hahler wrote:

> 2009/4/1 Igor Sysoev:
> > On Wed, Apr 01, 2009 at 08:23:18PM +0200, Daniel Hahler wrote:
> >> I'd like to enable both http and https within a single server block,
> >> without having to copy the whole block and only change "listen 80" to
> >> "listen 443" and add "ssl on".
> >>
> >> This appears to work somehow using the "ssl" parameter with "listen",
> >> but "nginx -t" complains that it can be used together with "default"
> >> only (""ssl" parameter can be specified for the default "listen"
> >> directive only").
> >> However, obviously I can use "default" only once.
> >>
> >> Would it be possible to allow usage of the "ssl" parameter without
> >> having to use "default"?
> >>
> >> The example for "ssl" at
> >> http://wiki.nginx.org/NginxHttpCoreModule#listen uses "default", but
> >> it's not mentioned in the documentation that this is a requirement.
> >>
> >> Example:
> >> server {
> >>
Subject Author Posted

Using http/https in a single server block ("ssl" parameter for "listen")

Daniel Hahler April 01, 2009 02:23PM

Re: Using http/https in a single server block ("ssl" parameter for "listen")

Igor Sysoev April 01, 2009 02:47PM

Re: Using http/https in a single server block ("ssl" parameter for "listen")

Daniel Hahler April 03, 2009 06:47AM

Re: Using http/https in a single server block ("ssl" parameter for "listen")

Igor Sysoev April 03, 2009 09:20AM

Re: Using http/https in a single server block ("ssl" parameter for "listen")

Daniel Hahler April 03, 2009 01:53PM

Re: Using http/https in a single server block ("ssl" parameter for "listen")

Merlin April 01, 2009 03:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready