X-Accel-Redirect for embedded videos and images in a page

Thomas iamkenzo at gmail.com
Sat Mar 22 14:23:49 MSK 2008

I am trying to implement the tutorial from Alex Kovyrin:

But instead of proxying to apache, I proxy php scripts to spawn-fcgi.

The protection of the files does work, but when I want to access a
jpeg image, I get the raw data displayed in my web-browser. How to
make it as an image?

In my php script I have added:
header('Content-Type: image/jpeg');
But it didn't work.

Is this a php or fastcgi issue?

More information about the nginx mailing list