Hello, I want to generate the file path of proxy cached data from the
proxy_cache_key variable. Is there some pseudo-code to generate the
same hash as nginx does internally?

Or would it be possible to make the generated cache_key available as a
loggable variable?

With regards,


The documentation for the proxy_cache_path directive of the
NginxHttpProxyModule states that the “Key and filename in cache is md5
of proxied URL”. Here is an example:

a user requests:

nginx has the proxy_pass directive:

the cached filename will be the md5 of:

This worked for me when using the default proxy_cache_key with nginx

Posted at Nginx Forum:,61057,67641#msg-67641