There you go:
2009/06/16 14:27:46 [emerg] 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 [emerg] 6538#"..., 198) = 198
writev(8, [{"HTTP/1.1 500 Internal Server Erro"..., 162}, {"<html>\r\n<head><title>500 Internal"..., 140}, {"<hr><center>nginx/0.7.51</center>"..., 53}], 3) = 355
write(4, "89.96.xxx.xxx - - [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).
Edited 1 time(s). Last edit at 06/16/2009 10:33AM by NoSync.