Welcome! Log In Create A New Profile

Advanced

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

September 13, 2010 09:00AM
gnexus Wrote:
-------------------------------------------------------
> 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.
> >
> We tried using $2 with two captures also, but it
> did not seem to work correctly.

Okay, it looks like this was the problem:

[b]set $domain $2;[/b]

We initially had that in there to also set the domain directory automatically. But since the regex was incorrect it did not function correctly. We took out the code to set the subdirectory by domain, but since we planned to try and use it again we did not remove that variable statement. I didn't realize that it would create a problem if not removed or commented out. But it certainly did!

Seems to work good now.
I'll be glad to see the malloc error problem resolved.
That way it will be easier to isolate my buggy code. . .
Thanks!
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: 223
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