12 messages in ru.sysoev.nginxRe: Mass virtual hosting and global r...
FromSent OnAttachments
NoSyncJun 15, 2009 6:30 am 
Igor SysoevJun 15, 2009 6:48 am 
NoSyncJun 15, 2009 8:23 am 
Igor SysoevJun 15, 2009 8:34 am 
NoSyncJun 15, 2009 9:22 am 
Igor SysoevJun 15, 2009 11:47 am 
NoSyncJun 16, 2009 6:43 am 
Igor SysoevJun 16, 2009 6:55 am 
NoSyncJun 16, 2009 7:31 am 
Igor SysoevJun 16, 2009 7:34 am 
NoSyncJun 16, 2009 8:06 am 
Edho P AriefJun 18, 2009 6:12 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Mass virtual hosting and global redirectActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jun 16, 2009 6:55:41 am
List:ru.sysoev.nginx

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 ?