X-Accel-Redirect for embedded videos and images in a page
Denis F. Latypoff
denis at gostats.ru
Sat Mar 22 14:35:36 MSK 2008
Hello Thomas,
Saturday, March 22, 2008, 5:23:49 PM, you 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?
re-compile nginx with the --with-debug option, setup 'error_log /path debug;' in
your config and check what really happens inside nginx ;)
--
Best regards,
Denis mailto:denis at gostats.ru
More information about the nginx
mailing list