How to output variable in Nginx for debugging Posted on 2019年9月24日 by 迎迎 姚 You can send Nginx variable values via headers. Handy for development. add_header X-debug-message "A static file was served" always; add_header X-uri "$request_uri"; and you’ll see in your browser’s response headers: