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

Thomas iamkenzo at gmail.com
Sat Mar 22 14:39:18 MSK 2008

Ok I got it working, my fastcgi params were once again messed up.

Now that I have my down.php file.

Let's say I have my index.php page, how to have index.php call
down.php to send it images to display inside index.php? Basically what
I am trying to create is a simple anti-leech script.

Best regards,

On Sat, Mar 22, 2008 at 12:23 PM, Thomas <iamkenzo at gmail.com> wrote:
> I am trying to implement the tutorial from Alex Kovyrin:
>  http://blog.kovyrin.net/2006/11/01/nginx-x-accel-redirect-php-rails/lang/en/
>  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