Welcome! Log In Create A New Profile

Advanced

Re: Mass virtual hosting and global redirect

June 16, 2009 09:56AM
On Tue, Jun 16, 2009 at 09:43:24AM -0400, NoSync wrote:

> As suggested, I tried using servername in place of the if block:
>
> server_name ~^(.*)\.(.*\..*)$;
> set $sub $1;
> set $domain $2;
>
> but I get errors like this:
>
> 2009/06/16 13:33:20 6443#0: *4 malloc() 18446744073709551612 bytes failed (12: ), client: 89.96.xxx.xxx, server: ~^(.*)\.(.*\..*)$, request: "GET / HTTP/1.1", host: "www.xxxxxxx.eu"
> 2009/06/16 13:33:24 6443#0: *15 malloc() 18446744073709551612 bytes failed (12: ), client: 89.96.xxx.xxx, server: ~^(.*)\.(.*\..*)$, request: "GET / HTTP/1.1", host: "www.yyyyyyy.it"
>
> while with the previous configuration everything's fine. Rewrites from non-www to www are also perfectly working with your regexp (thanks). I'm using nginx 0.7.51 on Ubuntu Jaunty. I could find some earlier discussions about similar problems, but my russian ain't the best despite some courses I took in the past. :-)

Could you create debug log of a request ?


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

Mass virtual hosting and global redirect

NoSync June 15, 2009 09:30AM

Re: Mass virtual hosting and global redirect

Igor Sysoev June 15, 2009 09:48AM

Re: Mass virtual hosting and global redirect

NoSync June 15, 2009 11:23AM

Re: Mass virtual hosting and global redirect

Igor Sysoev June 15, 2009 11:34AM

Re: Mass virtual hosting and global redirect

NoSync June 15, 2009 12:22PM

Re: Mass virtual hosting and global redirect

Igor Sysoev June 15, 2009 02:47PM

Re: Mass virtual hosting and global redirect

NoSync June 16, 2009 09:43AM

Re: Mass virtual hosting and global redirect

Igor Sysoev June 16, 2009 09:56AM

Re: Mass virtual hosting and global redirect

NoSync June 16, 2009 10:32AM

Re: Mass virtual hosting and global redirect

Igor Sysoev June 16, 2009 10:34AM

Re: Mass virtual hosting and global redirect

NoSync June 16, 2009 11:06AM

Re: Mass virtual hosting and global redirect

edogawaconan June 18, 2009 09:13AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 246
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