Welcome! Log In Create A New Profile

Advanced

Re: problem with PCRE matching, utf-8, Greek, rewrite

September 25, 2010 10:46AM
so, seems that the following is the most correct, (at least for me worked well so far)
[code]
location ~ "^(/optionalwebappname)?/ProcessImageServlet.*$" {
set $th '';

if ($request_uri ~ "^(.*)[\\?|&]type=th(&.*)?$") {
set $th 'th_';
}
rewrite ^(.+)$ http://static-dev.myhost.eu/$arg_hotel_id/$th$arg_filename break;
expires 1d;
}
[/code]

Again, my problem was to rewrite some urls with GET vars that were expected to contain utf8 characters.
So, the $arg_filename is passed correctly to the rewrite.
Subject Author Posted

problem with PCRE matching, utf-8, Greek, rewrite

tmanolat July 01, 2010 11:33AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Maxim Dounin July 01, 2010 01:18PM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat July 02, 2010 03:48AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

flickhorn September 23, 2010 03:46AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat September 23, 2010 05:12AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

mat h September 23, 2010 04:02AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

mat h September 24, 2010 09:48PM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Maxim Dounin September 25, 2010 05:20AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

tmanolat September 25, 2010 10:46AM

Re: problem with PCRE matching, utf-8, Greek, rewrite

Weibin Yao July 01, 2010 10:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 162
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready