Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is it possible to see the values of all the parameters of nginx for a particular request like if i request for localhost/myfolder/page.php what are the values of $request_uri, $document_uri, $document_root, fastcgi_send_timeout, $fastcgi_script_name, etc Also can i see the values of the fastcgi parameters also like SCRIPT_FILENAME, QUERY_STRING, etc?

I am using php-fpm with nginx.

share|improve this question
what is "viewing"? the question is very unclear. – cnst Mar 13 at 1:10

1 Answer

As you can custom log statements (see log_format) (quote "Note that variables produced by other modules can also be logged. ") you can probably create a line with all (or most) of the variables you want.

If you specify your request with a "location" directive you can place your special access_log in that location block.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.