Welcome! Log In Create A New Profile


Adding $request_path Variable

June 16, 2012 08:43PM
It would be very nice if someone would add the following variable to Nginx:


Right now, we have $request_uri which includes the query string of the original request. We also have the $uri which is the path portion of the $request_uri, but it is the path AFTER the rewrites. What would be very useful is the $request_path, which would be the original path portion of the $request_uri.

I use a very efficient TSV access log that can be imported and parsed VERY quickly by our analytics software. The problem with logging the $uri is that for requests that generate a 500 error, we lose the original request path since the error_page directed rewrites the $uri.


Subject Author Posted

Adding $request_path Variable

adamchal June 16, 2012 08:43PM

Re: Adding $request_path Variable

António P. P. Almeida June 18, 2012 03:50PM

Re: Adding $request_path Variable

adamchal July 02, 2012 09:44AM

Re: Adding $request_path Variable

adamchal August 29, 2012 06:25AM

Re: Adding $request_path Variable

kolbyjack August 29, 2012 07:56AM

Re: Adding $request_path Variable

adamchal August 29, 2012 09:39AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 123
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready