proxy_set_header inheritance not working?

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


On Fri, Apr 11, 2008 at 02:46:51PM +0100, Ed W wrote:

> Maxim Dounin wrote:
> >Hello!
> >
> >On Fri, Apr 11, 2008 at 01:48:12PM +0100, Ed W wrote:
> >
> >>Hi
> >>
> >>>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.
> >>>
> >>>Please note: quoting supported for directive arguments, but not for 
> >>>complex entities within them.  E.g. the following won't work:
> >>
> >>Is it possible to request variable expansion for log file location? 
> >>(ie easily make it a function of server name).
> >
> >No.
> >
> 
> ...Because...? 
> 
> Is it a bad idea?  Hard to implement?  Something else?

It's not too hard to implement. It simply takes some time to implement.

1st, workers must have rights to create files in specified path.
2nd, workers should keep open log files for some time, they may use
ngx_open_cached_file() interface for it.


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





More information about the nginx mailing list