Page MenuHomeDevCentral

Prefer to read url from HTTP_HOST than SERVER_NAME
ClosedPublic

Authored by dereckson on Nov 4 2017, 01:36.
Referenced Files
F4011323: D1168.id2984.diff
Fri, Jan 17, 14:17
Unknown Object (File)
Sat, Jan 11, 17:11
Unknown Object (File)
Sat, Jan 11, 14:38
Unknown Object (File)
Wed, Jan 8, 22:14
Unknown Object (File)
Fri, Jan 3, 15:04
Unknown Object (File)
Fri, Jan 3, 14:44
Unknown Object (File)
Sat, Dec 28, 01:36
Unknown Object (File)
Sun, Dec 22, 16:55
Subscribers
None

Details

Summary

The nginx web server allows to use an invalid domain name,
like _ as a server name.

In such case, we can't deduce a lot of things from the canonical
server name defined by the web server. HTTP_HOST is more informative.

Ref T1294

Reference: https://nginx.org/en/docs/http/server_names.html

Test Plan

On nginx, create a server block with server_name _;

Diff Detail

Repository
rTOOLS Nasqueron Tools
Lint
Lint Not Applicable
Unit
Tests Not Applicable