sts-sponsors team mailing list archive
-
sts-sponsors team
-
Mailing list archive
-
Message #05973
[Merge] ~troyanov/maas:proxy-headers into maas:master
The proposal to merge ~troyanov/maas:proxy-headers into maas:master has been updated.
Description changed to:
$http_host always equals the HTTP_HOST request header.
$host equals $http_host, lowercase and without the port number.
If HTTP_HOST is absent or is an empty value $host equals the value of the server_name directive of the server which processed the request.
This change fixes an issue when we have MAAS (192.168.1.11) behind HAProxy (10.0.0.11), and we are making a call to http://10.0.0.11:8888/MAAS/api/2.0/describe/
For the mentioned setup $host will be 10.0.0.11, and the `/describe` handler will return `uri` as `10.0.0.11:5140` because the original 8888 port information is lost.
For more details, see:
https://code.launchpad.net/~troyanov/maas/+git/maas/+merge/438884
--
Your team MAAS Committers is subscribed to branch maas:master.
References