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