Add support for a port component in the Host header
Request like this
$ curl -I http://gitlab-org.127.0.0.1.xip.io:8091/
HTTP/1.1 404 Not Found
Content-Type: text/html; charset=utf-8
Vary: Origin
X-Content-Type-Options: nosniff
Date: Thu, 05 Dec 2019 05:12:14 GMT
results in 6 API requests:
INFO[0011] GetVirtualDomain host=gitlab-org.127.0.0.1.xip.io response=200
INFO[0011] GetVirtualDomain host="gitlab-org.127.0.0.1.xip.io:8091" response=204
INFO[0011] GetVirtualDomain host="gitlab-org.127.0.0.1.xip.io:8091" response=204
INFO[0011] GetVirtualDomain host="gitlab-org.127.0.0.1.xip.io:8091" response=204
INFO[0012] GetVirtualDomain host="gitlab-org.127.0.0.1.xip.io:8091" response=204
INFO[0012] GetVirtualDomain host="gitlab-org.127.0.0.1.xip.io:8091" response=204
The first one is from gitlaab.GetDomain
and the rest (with port included are from gitlab.Resolve
.
In this example Pages is running with pages-domain=127.0.0.1.xip.io
and listen-http=":8090"
.
Edited by Grzegorz Bizon