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