Page MenuHomeDevCentral

Prefer to read url from HTTP_HOST than SERVER_NAME
ClosedPublic

Authored by dereckson on Nov 4 2017, 01:36.
Referenced Files
F31261404: D1168.id2983.diff
Sun, May 31, 21:10
F31253480: D1168.id2984.diff
Sun, May 31, 20:01
F31253441: D1168.id2985.diff
Sun, May 31, 20:01
Unknown Object (File)
Sat, May 30, 11:06
Unknown Object (File)
Fri, May 29, 06:07
Unknown Object (File)
Tue, May 26, 19:15
Unknown Object (File)
Mon, May 25, 08:05
Unknown Object (File)
Mon, May 25, 08:03
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