fastcgi_pass inheritance
Igor Sysoev
is at rambler-co.ru
Sun Dec 30 09:12:31 MSK 2007
On Sat, Dec 29, 2007 at 08:39:56PM -0500, Ben Maurer wrote:
> I've been trying to get a setup like this to work:
>
> location /fastcgi {
> fastcgi_pass ...;
> }
> location /fastcgi/specialscript {
> error_page 500 ...;
> }
>
> However, the existance of a location directive seems to make
> fastcgi_pass stop working -- it only works once I duplicate that
> directive (as well as any fastcgi related directive).
> Subject: Re: fastcgi_pass inheritance
nginx does not inherit configuration in run time from location to location.
> Is there a better way to set settings on a specific part of the upstream
> fastcgi tree without duplicating stuff in the config file?
You may describe all fastcgi stuff (fastcgi_param/etc) except fastcgi_pass
even on http level, and it will be inherited to all servers and locations
until will be overriden in them.
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list