Open loudapet opened 1 month ago
Also relevant for config file - the parser should follow the same rules for server_name
https://datatracker.ietf.org/doc/html/rfc3986#section-3.2.2 - general info about Host and its format
This specification does not mandate a particular registered name lookup technology and therefore does not restrict the syntax of reg- name beyond what is necessary for interoperability. Instead, it delegates the issue of registered name syntax conformance to the operating system of each application performing URI resolution, and that operating system decides what it will allow for the purpose of host identification. A URI resolution implementation might use DNS, host tables, yellow pages, NetInfo, WINS, or any other system for lookup of registered names. However, a globally scoped naming system, such as DNS fully qualified domain names, is necessary for URIs intended to have global scope. URI producers should use names that conform to the DNS syntax, even when use of DNS is not immediately apparent, and should limit these names to no more than 255 characters in length.
https://datatracker.ietf.org/doc/html/rfc1034#section-3.5 https://datatracker.ietf.org/doc/html/rfc1123#page-13