Re: Setting headers

2015-09-29 Thread Joó Ádám
Maxim, > When using nginx XSLT filter module, it shouldn't be needed to > modify Content-Type at all. Use xsl:output media-type attribute > instead to provide a correct media type from the stylesheet itself. I never knew output had a media-type attribute, thanks! Ádám

Re: Setting headers

2015-09-28 Thread Maxim Dounin
Hello! On Fri, Sep 25, 2015 at 04:20:41PM +0200, Joó Ádám wrote: > Something that long bothered me, and perhaps has already been > discussed, but I haven’t found anything on it: why is there no way to > set arbitrary headers without using an extension module? I know that > the `add_header` direct

Setting headers

2015-09-25 Thread Joó Ádám
Hi, Something that long bothered me, and perhaps has already been discussed, but I haven’t found anything on it: why is there no way to set arbitrary headers without using an extension module? I know that the `add_header` directive has been augmented with the `always` flag recently, but there’s st

Re: Headers set in http {} go missing after setting headers in location {}

2013-03-10 Thread nano
Thank you very much Francis. Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237172,237192#msg-237192 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Headers set in http {} go missing after setting headers in location {}

2013-03-10 Thread Francis Daly
On Sat, Mar 09, 2013 at 11:02:09PM -0500, nano wrote: Hi there, > How can I have global headers sent to the client, and send additional > headers when the client reaches a location block? The short version is "you can't". The longer version is "you can, but you have to configure it the nginx wa

Re: Headers set in http {} go missing after setting headers in location {}

2013-03-09 Thread nano
Accidentally pasted the headers twice. The config should look like this; http://pastie.org/private/lz9zjkmvd3drbo4ezsp3fg Posted at Nginx Forum: http://forum.nginx.org/read.php?2,237172,237173#msg-237173 ___ nginx mailing list nginx@nginx.org http://ma

Headers set in http {} go missing after setting headers in location {}

2013-03-09 Thread nano
Here is my nginx configuration http://pastie.org/private/4lceuccm9twmuiozdjnzkg My nginx -V is: nginx version: nginx/1.2.7 built by gcc 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) TLS SNI support enabled I noticed that when I had headers (add_header) in the http{ } block, those headers were not being