fastcgi_pass inheritance

Evan Miller emmiller at gmail.com
Sun Dec 30 05:13:56 MSK 2007


Ben Maurer wrote:
> Hi,
> 
> 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).
> 
> Is there a better way to set settings on a specific part of the upstream 
> fastcgi tree without duplicating stuff in the config file?
> 
> - Ben
> 
> 
> 

Inheritance works through nesting, not through substring matching:

     location /fastcgi {
         fastcgi_pass ...;

         location /fastcgi/specialscript {
             error_page 500 ...;
         }
     }






More information about the nginx mailing list