Hello nginx users. 

I am looking to  match and replace part of a URI.

Given incoming urls of 
http://www.aaa.com/secure/viewstuff?id=AA:9755744‎
and
http://www.aaa.com/secure/viewstuff?id=AA9755744
I need to remove the AA: portion of the url and leave the number string alone resulting in  http://www.aaa.com/secure/viewstuff?id=9755744 being proxied upstream. 

my starting config looks like this

location /secure/ { if ($query_string ~ "(id=AA:)|(id=AA)") { rewrite string_that_I_cant_get working; } allow all; proxy_pass http://upstream_cluster/;
}


Regards
Duane

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to