Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

2
Dumb Question about Nginx Stream
Post Body

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.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
34,362
Link Karma
3,056
Comment Karma
31,193
Profile updated: 5 days ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
3 years ago