Welcome! Log In Create A New Profile

Advanced

Re: malloc() errors - (some type of redirect loop?)

September 13, 2010 08:32AM
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
Subject Author Posted

malloc() errors - (some type of redirect loop?)

gnexus September 12, 2010 10:56AM

Re: malloc() errors - (some type of redirect loop?)

Maxim Dounin September 12, 2010 05:50PM

Re: malloc() errors - (some type of redirect loop?)

gnexus September 13, 2010 08:32AM

Re: malloc() errors - (some type of redirect loop?)

gnexus September 13, 2010 09:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready