Debugging nginx config with add_header
2024-03-03
Problem
Sometimes you are configuring the nginx server and it doesn’t work as expected. You are not sure what’s wrong with the config file. You can use the add_header
directive to debug the issue.
Solution
For this tutorial i am using this config file which you can find in my github repo
You can check this value on your browser by inspecting the network tab. You can see the Debug_value
in the response header.