use different fastcgi backend in different folder

Igor Sysoev is at rambler-co.ru
Mon Sep 1 17:05:15 MSD 2008


On Mon, Sep 01, 2008 at 02:59:58PM +0200, Samuel Vogel wrote:

> Igor Sysoev schrieb:
> >Try the following:
> >
> >        location ~ /pma/.+\.php$ {
> >                rewrite  ^/pma(/.+)$  $1  break;
> >
> >                fastcgi_pass   127.0.0.1:9001;
> >        }
> Thanks, this works!
> Even thou it works now, maybe somebody with some spare time could 
> explain to me what this actually does.
> I couldn't explain it to myself just with looking at the docs!

        rewrite  ^/pma(/.+)$  $1  break;

deletes /pma/ from URI and disables ("break") looking a new location
for the new URI. Thus request uses this localtion configuration.


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





More information about the nginx mailing list