Getting realpath for a request

Chinoy Gupta cgupta at
Fri Jul 15 05:04:49 UTC 2016


I am creating a nginx proxy handler to talk to a backend server. In that handler, I would like to get the physical path of the file to be served by a request. The file can be present in the docroot of nginx or any alias. How can I get this information?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list