Или так:
location /forum/index.php {
if ($arg_app = "portal") {
rewrite ^(.*)$ http://test.test.org/portal? last;
}
}
5 марта 2011 г. 10:13 пользователь Александр Усов <ooshro@ooshro.org>написал:
> if ($arg_app = "portal") { rewrite /forum/index\.php
> http://test.test.org/portal last; }
>
> 5 марта 2011 г. 6:31 пользователь ZLOFENIX <nginx-forum@nginx.us> написал:
>
> Всем ку.
>> По какой волшебной причине
>> rewrite ^/forum/index\.php\?app=portal http://test.test.org/portal?
>> last;
>> не проходит ?
>>
>> Posted at Nginx Forum:
>> http://forum.nginx.org/read.php?21,180560,180560#msg-180560
>>
>>
>> _______________________________________________
>> nginx-ru mailing list
>> nginx-ru@nginx.org
>> http://nginx.org/mailman/listinfo/nginx-ru
>>
>
>
>
> --
> Александр
>
> ooshro@ooshro.org
>
>
--
Александр
ooshro@ooshro.org
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru