Best way to get $request_filename

Marcus Clyne maccaday at gmail.com
Wed Jul 15 23:13:26 MSD 2009


Hi,

What's the best way to get the variable $request_filename from a custom 
module?

Currently I save the index of the $request_filename variable and call 
ngx_http_get_indexed_variable (r, request_filename_var_index), but is 
there a better way?

Thanks,

Marcus.





More information about the nginx mailing list