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, but $server_port is empty, so 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. -- Mailing list: https://launchpad.net/~sts-sponsors Post to : [email protected] Unsubscribe : https://launchpad.net/~sts-sponsors More help : https://help.launchpad.net/ListHelp

