Maxim Dounin
August 25, 2010 12:08PM
Hello!

On Wed, Aug 25, 2010 at 11:40:07AM -0400, habodal wrote:

> Thank you, I guess I misunderstood those directives' functions.
>
> After removing them, now I receive a 404 when attempting to access the
> image. The error log shows:
>
> [error] 1109#0: *40 open()
> "/var/www/public_html/dev/public/var/www/public_html/dev/public/doku/data/media/image.jpg"
> failed (2: No such file or directory), client: 192.168.1.121, server:
> dev, request: "GET /doku/lib/exe/fetch.php?cache=&media=image.jpg
> HTTP/1.1", upstream: "fastcgi://unix:/usr/local/var/run/php-fpm.sock:",
> host: "dev", referrer:
> "http://dev/doku/lib/exe/detail.php?id=start&media=image.jpg
>
> The webroot, /var/www/public_html/dev/public/ appears twice in the
> file's path. How can I prevent this?

Looks like you return file path in X-Accel-Redirect. You should
return uri instead, i.e.

X-Accel-Redirect: /docu/data/media/image.jpg

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

X-Accel-Redirect issues - Image of 0 size

habodal August 25, 2010 02:35AM

Re: X-Accel-Redirect issues - Image of 0 size

Maxim Dounin August 25, 2010 04:26AM

Re: X-Accel-Redirect issues - Image of 0 size

habodal August 25, 2010 11:40AM

Re: X-Accel-Redirect issues - Image of 0 size

Maxim Dounin August 25, 2010 12:08PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 172
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready