This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
In nginx, is it possible to have a config like this:
stream {
upstream example1 {server a.b.c.d;}
server{
proxy_pass example1;
ssl_certificate /*.test.com
}
upstream example2 {server a.b.c.d;}
server{
proxy_pass example2;
ssl_certificate /*.example.com
}
}
Asking because, well, in the server block I had 2 seperate certificates for each example. One for *.test.com, and another for *.example.com.
When I commented out *.text.com, the connection to the server a.b.c.d broke. And I'm not sure why.
Reading Nginx's guide on SSL Termination for TCP Upstream Servers my config looks correct. Though i'm omitting the following from this:
ssl_certificate_key;
ssl_protocols;
ssl_ciphers;
ssl_session_timeout 2m;
And running ./nginx -t shows my config looks correct (at least from a syntax perspective anyway).
So I'm unsure why, if I comment out the example1 ssl_certificate config, the example2 server block breaks connection with the servers I'm proxying to.
I would appreciate any advice or guidance that can be given.
Subreddit
Post Details
- Posted
- 3 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/nginx/comme...