X-accel-redirect serving html download page instead of file.
Justin Dorfman
jdorfman at netdna.com
Tue Aug 28 02:31:10 UTC 2012
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 at 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 at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20120827/e461c19e/attachment.html>
More information about the nginx
mailing list