Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisroos/1c70e8aaa1d48cf74814856c16250156 to your computer and use it in GitHub Desktop.
Save chrisroos/1c70e8aaa1d48cf74814856c16250156 to your computer and use it in GitHub Desktop.

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