redirect subdomain to internal location

chris.percol nginx-forum at nginx.us
Thu May 26 12:34:51 MSD 2011


António P. P. Almeida Wrote:
-------------------------------------------------------
> On 25 Mai 2011 19h14 WEST, nginx-forum at 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
> 

Appa,

Thanks, no joy, but get it now. Think problem may be down to my perl
version, will try with ?P<clientname>.

Chris


> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,200694,201071#msg-201071




More information about the nginx mailing list