Pass headers from FastCGI backend to client while X-Accel-Redirect
riobard
nginx-forum at nginx.us
Thu Apr 22 17:56:29 MSD 2010
Hi,
I'm having some trouble with FastCGI backend sending custom headers to client while using X-Accel-Redirect. My backend PHP does something like this:
header( "custom-header: some-value" );
header( "X-Accel-Redirect: " . $cache_file);
If I don't use X-Accel-Redirect everything is fine (i.e. I can see the custom-header from client side). But Nginx seems to strip all headers set by my PHP backend if X-Accel-Redirect is used. Any idea why and how I can add it back? Thanks very much!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,78024,78024#msg-78024
More information about the nginx
mailing list