Page MenuHomeDevCentral

Prefer to read url from HTTP_HOST than SERVER_NAME
ClosedPublic

Authored by dereckson on Nov 4 2017, 01:36.
Referenced Files
F44429007: D1168.id2986.diff
Mon, Aug 17, 00:50
F44401367: D1168.id2985.diff
Sun, Aug 16, 21:32
F44283921: D1168.id.diff
Sun, Aug 16, 08:58
Unknown Object (File)
Sun, Aug 16, 08:21
Unknown Object (File)
Sun, Aug 16, 07:19
Unknown Object (File)
Sun, Aug 16, 06:42
Unknown Object (File)
Sun, Aug 16, 04:32
Unknown Object (File)
Sun, Aug 16, 03:51
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