Page MenuHomeDevCentral

Prefer to read url from HTTP_HOST than SERVER_NAME
ClosedPublic

Authored by dereckson on Nov 4 2017, 01:36.
Referenced Files
F18791164: D1168.id2986.diff
Sat, Dec 20, 19:16
F18788914: D1168.diff
Sat, Dec 20, 18:30
Unknown Object (File)
Wed, Dec 17, 15:43
Unknown Object (File)
Tue, Dec 16, 12:00
Unknown Object (File)
Sun, Dec 14, 23:37
Unknown Object (File)
Fri, Dec 12, 14:13
Unknown Object (File)
Thu, Dec 11, 07:42
Unknown Object (File)
Thu, Dec 11, 04:24
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 1836
Build 2084: arc lint + arc unit