malloc() errors - (some type of redirect loop?)
gnexus
nginx-forum at nginx.us
Mon Sep 13 16:32:13 MSD 2010
Maxim Dounin Wrote:
-------------------------------------------------------
> > # Extracts the subdomain to a variable
> > if ($host ~ "^(.*).xxxxxxxx.net") {
> > set $sub $1;
> > set $domain $2;
> > }
>
> You have regexp with one capture, but try to use
> $2.
>
Thanks for your help!
But could you elaborate a bit more? Please. . .
Like I said before, I'm not too familiar with regex.
We tried using $2 with two captures also, but it did not seem to work
correctly.
It will give it a try again in the interim, however. Maybe I'll get
lucky. . .
Gnexus
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,129739,129984#msg-129984
More information about the nginx
mailing list