NGINX location regex
Antonio Pintus
pintux at crs4.it
Thu Jul 14 19:21:14 MSD 2011
Thanks Antonio,
it works.
Best,
Antonio
Il 14/07/11 15.41, António P. P. Almeida ha scritto:
> On 14 Jul 2011 14h27 WEST, pintux at crs4.it wrote:
>
>> Hi,
>>
>> I'm trying to configure nginx to match a location conf for URLs like
>> the following:
>>
>> http://myserver.com/consume?id=123
>>
>> but NOT the following:
>>
>> http://myserver.com/consumer/456
>
> location = /consume {
> (...)
> }
>
> Note that arguments are not ever matched on locations. The reason
> being that the order is arbitrary:
>
> /consume?id=123&t=234 is the same as /consume?t=234&id=123
>
>> I've tried several regex but something in nginx is working different
>> in respect to an external regex matcher...
>
>> From what you wrote above I see no need to use a regex based location.
>
> --- appa
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx
--
Antonio Pintus
Technologist
ICT group
CRS4, Center for Advanced Studies, Research and Development in Sardinia
e-mail: pintux at crs4.it
Phone: +39 0709250268
Skype: pintuxskype
CRS4 Home: http://www.crs4.it
More information about the nginx
mailing list