Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Debugging nginx config

  • Use the debug log level to the error_log directive

    • I think this writes to the log for all requests, not just errors.
  • Use return 302 http://localhost to force a redirect to localhost.

  • Use add_header to write debug info to HTTP headers for later inspection

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.