debug headers with nginx

THIS IS A DRAFT

descr

debug the headers you’re receiving from your CDN provider – e.g. you need to check you’ve got x-request-id

warning // lessons learned

you probably don’t have debug enabled

# empty output
nginx -V 2>&1 | grep '^configure arguments' | grep with-debug

so you need a custom built nginx for that

./configure ... --with-debug

setup

on test-nginx-backend

error_log /var/log/nginx/error.log debug;

nginx -t
nginx -s reload
#nginx -s reopen
tail -F /var/log/nginx/error.log | grep 'http header'

from pfsync1

curl -I -H 'test-header: test string' THAT_ORIGIN

resources

https://github.com/kubernetes/ingress-nginx/blob/main/charts/ingress-nginx/values.yaml

https://github.com/kubernetes/ingress-nginx/blob/main/docs/examples/customization/custom-headers/README.md

https://kubernetes.github.io/ingress-nginx/examples/customization/custom-headers/

https://stackoverflow.com/questions/54083179/how-can-i-correctly-setup-custom-headers-with-nginx-ingress


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT