Welcome! Log In Create A New Profile

Advanced

Re: multiple ssl certificates within single server {} block

Richard Kearsley
November 05, 2013 08:58AM
On 05/11/13 13:50, Jonathan Matthews wrote:
> Please show a duplicated (i.e. operationally inefficient) config that
> you wish to aggregate, as I don't understand the result you're aiming
> for. J

something like this is the only way I see to do it currently:

http
{
server
{
listen 80;
listen 443 ssl;
server_name www.example.com

ssl_certificate www.example.com.cer;
ssl_certificate_key www.example.com.key;

location /
{
# lots of config here
# which I really don't want to duplicate
}

# and about 10 other locations!
}

server
{
listen 80;
listen 443 ssl;
server_name www.test.com

ssl_certificate www.test.com.cer;
ssl_certificate_key www.test.com.key;

location /
{
# lots of config here
# which I really don't want to duplicate
}

# and about 10 other locations!
}

server
{
listen 80;
listen 443 ssl;
server_name www.something.com

ssl_certificate www.something.com.cer;
ssl_certificate_key www.something.com.key;

location /
{
# lots of config here
# which I really don't want to duplicate
}

# and about 10 other locations!
}
}

this could go on for 100's of domains...

Cheers
--
Richard





_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

multiple ssl certificates within single server {} block

Richard Kearsley November 05, 2013 08:32AM

Re: multiple ssl certificates within single server {} block

Jonathan Matthews November 05, 2013 08:52AM

Re: multiple ssl certificates within single server {} block

Richard Kearsley November 05, 2013 08:58AM

Re: multiple ssl certificates within single server {} block

Tim Düsterhus November 05, 2013 11:30AM

Re: multiple ssl certificates within single server {} block

Richard Kearsley November 05, 2013 11:52AM

Re: multiple ssl certificates within single server {} block

Tim Düsterhus November 05, 2013 12:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
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