Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rewrite для URI со знаком вопроса
- To: nginx-ru@xxxxxxxxx
- Subject: Re: rewrite для URI со знаком вопроса
- From: "siroco" <nginx-forum@xxxxxxxx>
- Date: Fri, 07 Jun 2013 04:20:44 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=Vd2pxgaDoLUcUV0j/NS0KOCW4R3WUXDJCLK2FTqFc5s=; b=NEfVESeq1PEmCewjRpOFbAqhll6nxtLytH9ocyRKCQDBDdbBejSc/sSBxP6WAL+46JTZvgKLjjjdrjeG9qXS1tNJbyT5ONLnPFVqpKN4b6l3+TsKc6ABgY2fq63AP5omK7QE3NzShivXpZJF5nCUBg7v87/9jIltxYqs2IuR3hU=;
- In-reply-to: <51B0C79A.1070203@kopeyko.ru>
- References: <51B0C79A.1070203@kopeyko.ru>
У меня сработала вот такая вот конструкция:
location /path2 {
if ($request_uri ~ /path2/blablabla.action) {
set $test O;
}
if ($arg_licenseRequest = ABC123) {
set $test "${test}K";
}
if ($test = OK) {
return 301
/path2/blablabla.action?licenseRequest=XYZ890;
}
proxy_buffering on;
proxy_pass http://some_server;
proxy_read_timeout 240;
proxy_set_header Host host.domain.net;
proxy_set_header X-Forwarded-For $remote_addr;
}
Понятно, что она совсем не гибкая, но работает!
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,239917,239948#msg-239948
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|