How does the server_name in stream work?
Hi everyone,
I hope you are doing well!
I’ve tried to find how does the server_name works in the stream block but I can’t seem to find any source, does someone knows?
Thanks in advance for your response!
How does the server_name in stream work?
Hi everyone,
I hope you are doing well!
I’ve tried to find how does the server_name works in the stream block but I can’t seem to find any source, does someone knows?
Thanks in advance for your response!
Hey @catwayne! You are right in that there isn’t much documentation on the matter. I’ll point you to an answer given by one of our developers on GitHub here. I’m copying the answer below too just in case:
In Stream server name always comes from SSL, which is missing in your configuration. There are two ways to use it:
ssl termination; in this case you need to enable
ssl
inlisten
ssl_preread
; in this case you need to enablessl_preread
in the default server
Hi @alessandro, thank you for your response, it is very helpful!
Have a great day!