proxy_set_header inheritance not working?

Igor Sysoev is at rambler-co.ru
Fri Apr 11 18:21:38 MSD 2008


On Sat, Apr 12, 2008 at 12:07:04AM +1000, Mark James wrote:

> Maxim Dounin wrote:
> 
> >Quoting has nothing to do with variable expansion.  Variable expansion 
> >happens unconditionally if it's supported for particular parameter.  
> >This is usually documented on per-directive basis.
> 
> OK, so quotes are really only needed for parameters that
> have either white space or their own quotes.

Yes.

> >Please note: quoting supported for directive arguments, but not for 
> >complex entities within them.  E.g. the following won't work:
> >
> >upstream test {
> >   server 127.0.0.1:8080 max_fails="10";
> >}
> 
> So would you have to write:
> 
>   server 127.0.0.1:8080 'max_fails="10"';
> 
> to ensure the double quotes aren't treated specially?

Yes, except that ="10" is invalid value.

> I came across this myself with P3P headers. e.g.
> 
>   add_header P3P 'CP="ALL CUR"'

Yes.


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list