-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Description
Title: The FAQ page that documents SNI configuration is slightly incorrect and misleading
Description:
The SNI configuration example shown in the FAQ section is incorrect because it shows supplying a string value instead of a list of strings for the server_names parameter. This took some time for me to debug since:
- the server itself accepts this configuration without issue (though it won't work so I guess it does something else with it)
server_namesis a strange label for a single string but I thought maybe that's just how the reference example does it and it seems to be implied that you'd duplicate the entire block containing it for SNI so I thought it might be an implementation detail that formed from that.- it's my first rodeo (okay, it might be my 3rd)
The particular example is also confusing since according to the documentation on the server_names parameter both "www.example.com" and "example.com" would have been matched by the "wildcard" matching that is supposedly done for "www.example.com" so the second block would therefore never do anything. Turbine Labs, for instance, propagates this confusion in an article of theirs so it seems not to be something that comes from lack of familiarity with the product. Would you consider us making the second example something like "api.example.com" instead? Then a note could be added about the wildcard matching feature taking care of parent domains.