On 26 Mai 2011 11h47 WEST, nginx-forum@nginx.us wrote:
> Nearly there!
>
> Thanks to Appa I have got this far...
>
> location ~ /(?<clientkey>[^/]*)/ {
>
> What I didn't consider was that sometimes the result I am testing
> for may not have a proceeding '/'.
location ~ ^/(?<clientkey>[^/]*) {
(...)
}
All requests of the form domain.com/whatever are now matched. You're
capturing only the 1st component of the URI 'whatever'.
--- appa
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx