How to test/check headers behind CDN on Kubernetes/Docker Infrastructure

Since this one is too hard to test by direct browser visit (you can see only 502 error from CloudFront or any other popular CDN provider), you can always test it directly from customer's SSH container, by the following pattern:

curl -kI --header 'Host: domain.com' 'https://nginx/lifetime-fitness-sample/ma-ny-lifeguard.html'

Original link for that one was:
https://domain.com/lifetime-fitness-sample/ma-ny-lifeguard.html

You can figure that we injected Host: method to the curl command and then called Nginx hostname directly.

But what if the link is hidden behind certain username/password protection or authentication?

Not a problem at all. Please watch my video on how that can be achieved.

Please watch the video here:
https://vimeo.com/386681722

Addon:
For Windows users use the copy as cURL (cmd) option:
alt

Ref article:
https://curl.haxx.se/docs/manpage.html