Welcome! Log In Create A New Profile

Advanced

Re: X-accel-redirect serving html download page instead of file.

Justin Dorfman
August 27, 2012 10:32PM
I checked my configs and add_header is after the root directive like so:

location = /shipped {
root /home/mysite/public_html/shipped;
internal;
add_header Content-Disposition attachment;
}

Not sure if order matters or if it should be above or below the internal
directive. I know Maxim and Piotr S. will know ;)

Regards,

Justin Dorfman http://www.twitter.com/jdorfman

NetDNA http://www.netdna.com™
The Science of Acceleration™



On Mon, Aug 27, 2012 at 7:05 PM, wideawake <nginx-forum@nginx.us> wrote:

> I tried adding what you suggested like so
>
> location = /shipped {
> add_header Content-Disposition attachment;
> root /home/mysite/public_html/shipped;
> internal;
> }
>
> and by just adding the line to the site config. Neither of which worked
> unfortunately.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,230161,230163#msg-230163
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

X-accel-redirect serving html download page instead of file.

wideawake August 27, 2012 09:29PM

Re: X-accel-redirect serving html download page instead of file.

Justin Dorfman August 27, 2012 09:58PM

Re: X-accel-redirect serving html download page instead of file.

wideawake August 27, 2012 10:05PM

Re: X-accel-redirect serving html download page instead of file.

Justin Dorfman August 27, 2012 10:32PM

Re: X-accel-redirect serving html download page instead of file.

wideawake August 27, 2012 11:02PM

Re: X-accel-redirect serving html download page instead of file.

Maxim Dounin September 03, 2012 02:32PM

Re: X-accel-redirect serving html download page instead of file.

poulphunter December 04, 2012 09:07AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 224
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