On 25 Mai 2011 19h14 WEST, nginx-forum@nginx.us wrote:
>> location ~ /(?<clientkey>[^/]*)/ {
>
> Appa,
>
> Thanks again!
>
> My issue is that I don't know the value of clientkey, it could be
> several hundred possibilities.
>
> Is there a way to extract the unknown clientkey from
> /clientkey/some/more.htm?
>
> Many thanks,
That's completely generic. It's a named group that captures any char
excepting '/'.
This implicitly creates a variable $clientkey that you can use.
Try it.
--- appa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx