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.


So in other words if we have a setup when MAAS (192.168.1.11) is behind HAProxy 
(10.0.0.11), and we are making a call to 
http://10.0.0.11:8888/MAAS/api/2.0/describe/

$host in that case will be 10.0.0.11, and then `/describe` will return `uri` as 
`10.0.0.11:5140` because the original 8888 port information was 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

Reply via email to