Mass virtual hosting and global redirect

NoSync nginx-forum at nginx.us
Tue Jun 16 18:32:03 MSD 2009


There you go:

2009/06/16 14:27:46  6580#0: *21 malloc() 18446744073709551612 bytes failed (12: ), client: 89.96.xxx.xxx, server: ~^(.*)\.(.*\..*)$, request: "GET / HTTP/1.1", host: "www.digitalnatives.eu"

And here's a strace:

accept(7, {sa_family=AF_INET, sin_port=htons(41325), sin_addr=inet_addr("89.96.xxx.xxx")}, [7899595229974495248]) = 8
ioctl(8, FIONBIO, [1])                  = 0
epoll_ctl(10, EPOLL_CTL_ADD, 8, {EPOLLIN|EPOLLET, {u32=7199456, u64=7199456}}) = 0
epoll_wait(10, {{EPOLLIN, {u32=7199456, u64=7199456}}}, 512, 60000) = 1
gettimeofday({1245162214, 677575}, NULL) = 0
recvfrom(8, "GET / HTTP/1.1\r\nHost: www.digital"..., 1024, 0, NULL, NULL) = 592
open("/var/www/vhosts/digitalnatives.eu/www/", O_RDONLY) = 11
fstat(11, {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
close(11)                               = 0
open("/var/www/vhosts/digitalnatives.eu/www/", O_RDONLY) = 11
fstat(11, {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
close(11)                               = 0
open("/var/www/vhosts/digitalnatives.eu/www/", O_RDONLY) = 11
fstat(11, {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
close(11)                               = 0
open("/var/www/vhosts/digitalnatives.eu/www/", O_RDONLY) = 11
fstat(11, {st_mode=S_IFDIR|0770, st_size=4096, ...}) = 0
close(11)                               = 0
open("/var/www/vhosts/digitalnatives.eu/www/index.php", O_RDONLY) = 11
fstat(11, {st_mode=S_IFREG|0674, st_size=397, ...}) = 0
write(3, "2009/06/16 14:23:34  6538#"..., 198) = 198
writev(8, [{"HTTP/1.1 500 Internal Server Erro"..., 162}, {"\r\n500 Internal"..., 140}, {"nginx/0.7.51"..., 53}], 3) = 355
write(4, "89.96.100.196 - - [16/Jun/2009:14"..., 200) = 200
close(11)                               = 0

Nginx gives 500 error, as you can see, while it works perfectly using the if's. To be noted, it works perfectly if I try to access any URL deeper than first level (www.domain.com/something works, www.domain.com or www.domain.com/index.php does not).

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,2924,2957#msg-2957






More information about the nginx mailing list