Maxim Dounin
August 25, 2010 04:26AM
Hello!

On Wed, Aug 25, 2010 at 02:35:22AM -0400, habodal wrote:

> Hello,
>
> I am trying to use the X-Accel-Redirect header feature of Dokuwiki.
> However, when attempting to access images, for example, I receive an
> image of zero size which the browsers displays as a URL. I believe my
> nginx configuration is to blame.
>
> Nginx config:
>
> server {
>
> listen 80;
>
> server_name dev;
>
> root /var/www/public_html/dev/public;
> index index.php;
> autoindex on;
>
> location ~ \.php$ {
> include /usr/local/etc/nginx/fastcgi.conf;
> fastcgi_pass unix:/tmp/php-fpm.sock;
> fastcgi_index index.php;
> fastcgi_ignore_headers X-Accel-Redirect;
> fastcgi_pass_header X-Accel-Redirect;

Your fastcgi_ignore_headers and fastcgi_pass_header instruct nginx
to ignore X-Accel-Redirect header completely (i.e. do not handle
it) and pass it back to client. It's probably not what you want.

Just remove these two directives.

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: 98
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready