stopping a 'silent' redirect with php/fcgi
Igor Sysoev
is at rambler-co.ru
Tue Apr 10 23:49:08 MSD 2007
On Tue, Apr 10, 2007 at 11:44:36AM -0400, Jonathan Vanasco wrote:
> This has been killing me, trying to figure out what was going on:
>
> http://www.domain.com/Path/To?a=123
>
> Is always redirected (302) to
>
> http://www.domain.com/Path/To/
>
> But
>
> http://www.domain.com/Path/To/?a=123
>
> works fine.
>
> can anyone offer me a suggestion as to where i can keep this from
> happening ?
>
> This seems to happen within nginx itself -- however i can't find any
> settting that would cause this.
Probably your configuration is similar to
location /Path/To/ {
fastcgi_pass ...
}
then nginx does such redirect for "/Path/To".
In my practice it's handy feature. However, if you do not need it,
then you should use:
location = /Path/To {
fastcgi_pass ...
}
location /Path/To/ {
fastcgi_pass ...
}
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list