Getting realpath for a request

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


Hi,

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?

Regards,
Chinoy

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20160715/40536c28/attachment.html>


More information about the nginx mailing list