Clarify $server_name variable with regex server_name directive
|Reported by:||davidjb||Owned by:|
The documentation for $server_name mentions the following:
$server_name name of the server which accepted a request.
When using the
server_name directive with regex and captures (like in the documentation), it was unclear to me without testing what the
$server_name variable would end up being. After looking at the source, I can now see the variable is always the string literal of the matching
I'd suggest adding an additional line to the documentation for
$server_name to clarify the expected value of this variable, such as the following:
name of the server which accepted a request.
If the server_name directive contains one or more regular expressions, $server_name will be the string literal of the matching regular expression; it is not evaluated in this variable.