Welcome! Log In Create A New Profile

Advanced

Re: Mass virtual hosting and global redirect

June 16, 2009 10:32AM
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.
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: 293
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