Hello,
I have troubles overriding the Host header.
I want to test individually:
- My CDN
- My varnish
- My backend
To do that i need to check the IP with a custom Header, if i had to script it i would use Curl:
- curl -I -H "Host:my_superb_domain_name.com" http://IPCDN/myasset.json
- curl -I -H "Host:my_superb_domain_name.com" http://IPvarnish/myasset.json
- curl -I -H "Host:my_superb_domain_name.com" http://IPbackend/myasset.json
So i tried to do something like that:
- type: http
urls: ["http://IPCDN/myasset.json","http://IPvarnish/myasset.json","http://IPbackend/myasset.json"]
check.request:
method: GET
headers:
accept-encoding: gzip,deflate
host: my_superb_domain_name.com
The Host header is not used, so i get a 404 or a 403 depending of the default behavior of my cdn/varnish/backend
Am i doing something wrong ?
Thank you