Page MenuHomeDevCentral

Prefer to read url from HTTP_HOST than SERVER_NAME
ClosedPublic

Authored by dereckson on Nov 4 2017, 01:36.
Referenced Files
F25179001: D1168.id2985.diff
Fri, Apr 3, 11:03
F25177695: D1168.id2984.diff
Fri, Apr 3, 09:22
F25170883: D1168.diff
Fri, Apr 3, 01:19
F25170304: D1168.id2983.diff
Fri, Apr 3, 00:30
F25165456: D1168.diff
Thu, Apr 2, 15:36
Unknown Object (File)
Tue, Mar 31, 02:03
Unknown Object (File)
Sun, Mar 29, 12:42
Unknown Object (File)
Sun, Mar 29, 10:57
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
No Lint Coverage
Unit
No Test Coverage
Branch
prefer-http-host (branched from master)
Build Status
Buildable 1837
Build 2085: arc lint + arc unit