I have 301 hits going to the access log, but I am looking for a way to include the destination, or "Location" as it is in the http response header, to the access log. I have looked at all the variables, but none seem to be that. Thanks.

  • $upstream_http_location nginx.org/en/docs/http/… – Alexey Ten Mar 26 at 22:14
  • I don't see that variable mentioned on the linked page, and I tried that and it doesn't seem to work for me. Thanks, though! – user130681 Mar 30 at 22:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.