RE: Problem with DynDns and Apache Virtual Hosts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I investigated the problem further, and that:
- DNS is working correctly.
- The Apache is sending (still for reasons unknown the 301 response). Below
is the extract from error.log of the first domain (with mod_dumpio turned
on):
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 16 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): GET / HTTP/1.1\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 173 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, */*\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 21 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Language: pl\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 15 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): UA-CPU: AMD64\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Encoding: gzip, deflate\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 143 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.5.21022; .NET CLR
3.0.04506)\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Host: user1.somedomain.selfip.org\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 24 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Connection: Keep-Alive\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 2 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): \r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-HEAP): 431 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-HEAP): HTTP/1.1 301 Moved Permanently\r\nDate: Thu, 09 Oct 2008
21:18:32 GMT\r\nServer: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8\r\nX-Powered-By:
PHP/5.2.0-8+etch11\r\nX-Pingback:
http://www.somedomain.selfip.org/~sify/xmlrpc.php\r\nLocation:
http://www.somedomain.selfip.org/\r\nContent-Length: 0\r\nKeep-Alive:
timeout=15, max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html;
charset=UTF-8\r\n\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOS): 0 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[eatcrlf-nonblocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 11
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 16 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): GET / HTTP/1.1\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 173 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/x-ms-application, application/vnd.ms-xpsdocument,
application/xaml+xml, application/x-ms-xbap, */*\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 21 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Language: pl\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 15 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): UA-CPU: AMD64\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Encoding: gzip, deflate\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 143 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.5.21022; .NET CLR
3.0.04506)\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 24 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Connection: Keep-Alive\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 30 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Host: www.somedomain.selfip.org\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 2 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): \r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-HEAP): 378 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-HEAP): HTTP/1.1 200 OK\r\nDate: Thu, 09 Oct 2008 21:18:32
GMT\r\nServer: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8\r\nLast-Modified: Sat, 04 Oct
2008 23:59:55 GMT\r\nETag: "104826-f7-3f1b94c0"\r\nAccept-Ranges:
bytes\r\nContent-Length: 247\r\nKeep-Alive: timeout=15,
max=100\r\nConnection: Keep-Alive\r\nContent-Type: text/html;
charset=UTF-8\r\n\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-FILE): 247 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-MMAP): <html>\n<head>\n<title>..:: The Somedomain Group
::..</title>\n<style>\nbody {\n    margin: 0;\n    padding: 1em 2em;\n
text-align: center;\n}\n</style>\n</head>\n<body>\n<img id="SomedomainLogo"
src="Somedomain-Logo.jpg" alt="The Somedomain Group" />\n</body>\n</html>\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOS): 0 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[eatcrlf-nonblocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 11
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): GET /Somedomain-Logo.jpg HTTP/1.1\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 13 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept: */*\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 41 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Referer: http://www.somedomain.selfip.org/\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 21 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Language: pl\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 15 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): UA-CPU: AMD64\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Encoding: gzip, deflate\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 143 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.5.21022; .NET CLR
3.0.04506)\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 30 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Host: www.somedomain.selfip.org\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 24 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Connection: Keep-Alive\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 2 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): \r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-HEAP): 367 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-HEAP): HTTP/1.1 200 OK\r\nDate: Thu, 09 Oct 2008 21:18:32
GMT\r\nServer: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8\r\nLast-Modified: Sat, 04 Oct
2008 17:41:01 GMT\r\nETag: "10482a-e71b-f40e4540"\r\nAccept-Ranges:
bytes\r\nContent-Length: 59163\r\nKeep-Alive: timeout=15,
max=99\r\nConnection: Keep-Alive\r\nContent-Type: image/jpeg\r\n\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-FILE): 59163 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-MMAP): \xff\xd8\xff\xe0
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOS): 0 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[eatcrlf-nonblocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 11
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 27 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): GET /favicon.ico HTTP/1.1\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 13 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept: */*\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 15 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): UA-CPU: AMD64\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 32 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Accept-Encoding: gzip, deflate\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 143 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;
Win64; x64; .NET CLR 2.0.50727; SLCC1; .NET CLR 3.5.21022; .NET CLR
3.0.04506)\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 30 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Host: www.somedomain.selfip.org\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 24 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): Connection: Keep-Alive\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_in
(data-HEAP): 2 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_in
(data-HEAP): \r\n
[Thu Oct 09 23:18:32 2008] [error] [client 192.168.2.1] File does not exist:
/var/www/apache2-default/favicon.ico
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-HEAP): 293 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-HEAP): HTTP/1.1 404 Not Found\r\nDate: Thu, 09 Oct 2008 21:18:32
GMT\r\nServer: Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4
PHP/5.2.0-8+etch11 mod_perl/2.0.2 Perl/v5.8.8\r\nContent-Length:
373\r\nKeep-Alive: timeout=15, max=98\r\nConnection:
Keep-Alive\r\nContent-Type: text/html; charset=iso-8859-1\r\n\r\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(data-HEAP): 373 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(67): mod_dumpio:  dumpio_out
(data-HEAP): <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML
2.0//EN">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p>The requested URL
/favicon.ico was not found on this server.</p>\n<hr>\n<address>Apache/2.2.3
(Debian) mod_python/3.2.10 Python/2.4.4 PHP/5.2.0-8+etch11 mod_perl/2.0.2
Perl/v5.8.8 Server at www.somedomain.selfip.org Port
80</address>\n</body></html>\n
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOS): 0 bytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[eatcrlf-nonblocking] 0 readbytes
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 11
[Thu Oct 09 23:18:32 2008] [debug] mod_dumpio.c(103): mod_dumpio: dumpio_in
[getline-blocking] 0 readbytes
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 70007
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-FLUSH): 0 bytes
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOC): 0 bytes
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(117): mod_dumpio: dumpio_in
- 70007
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(129): mod_dumpio: dumpio_out
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-FLUSH): 0 bytes
[Thu Oct 09 23:18:47 2008] [debug] mod_dumpio.c(51): mod_dumpio:  dumpio_out
(metadata-EOC): 0 bytes

So clearly apache gets the request as described and acts... quite strange.
Any more ideas?
Because I'm all out of mine.

Sify

P.S. I don't know if I mentioned this but the box runs Debian 4.0

-----Original Message-----
From: André Warnier [mailto:aw@xxxxxxxxxx] 
Sent: Thursday, October 09, 2008 3:03 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Problem with DynDns and Apache Virtual Hosts

Bartek Śiwy User1 wrote:
[...]

> 
> I'll do that. Hoever I still don't understand why the request to a second
vhost end up redirected to first.
> 
Hi.
I think that you are getting confused between different steps of what 
happens (and it is quite easy to get confused, because there are many 
steps).  So you need to really look at each level individually, 
step-by-step, and try to figure out where the problem really is.
The point is, at this moment it is not sure that it is an Apache 
problem, or a DNS problem, or a router problem, or anything else.
You can start from one end, or from the other, but you have to be 
systematic about it, otherwise you will never solve it.

I'll try to help, starting from the last level, Apache and VirtualHosts.

1) a HTTP request comes into your server, if the client sent it *to the 
IP address* of your Apache host.
Not to the *name* of the server or any virtual host, to the IP address.
You should only continue if you really understand this fully.

2) when the HTTP request comes into the server, it looks like this :

GET / HTTP/1.1
Host: thename.of.your.virtualhost.com

There are 2 lines :
line 1 is the HTTP request
line 2 is an additional parameter for the request
So, the name of the server to which the client wants to talk, is an 
additional parameter "Host:" in the request, but it is not that name 
that made it so that the request arrived at this host.
I'll explain that later.

3) Now Apache has the request.
It looks at the Host: parameter, and sees that it says 
"thename.of.your.virtualhost.com".
Apache then looks at each of its VirtualHost sections, to see if one of 
them matches that name.
If it finds one, then it "takes the personality" of that VirtualHost, 
and answers the request.
If it does not find any VirtualHost that matches the name, then it takes 
the personality of the first VirtualHost that it finds in the Apache 
configuration file, and answers the request as that one.
That is why this first VirtualHost is known as "the default Virtual 
Host".  It is just because, if Apache cannot find the "correct" Virtual 
Host, it will use this first one.

I will repeat this, so that there is no doubt :
No matter where the connection comes from, and no matter what the 
request says in line 2,

Now, how does the client know, that when it wants to get the content of 
the URL "http://thename.of.your.virtualhost.com";, it needs to connect 
via TCP/IP to the host with address 111.222.111.222, on port 80 ?

That's a matter of name resolution, or DNS.
The client (in this case the browser), will ask its underlying operating 
system to translate "thename.of.your.virtualhost.com" into an IP 
address.  And whatever the OS answers, the client will believe it.

4) So the client asks, and gets the IP address "111.222.111.222".
Now it connects to the server at 111.222.111.222, port 80, and sends the 
request :
GET / HTTP/1.1
Host: thename.of.your.virtualhost.com
and Apache responds like in 3 above.


The points to really get here :
a) if Apache gets a connection, and on that connection it gets a request 
that looks like
GET / HTTP/1.1
Host: thename.of.your.virtualhost.com
then it will always handle this request, as described above.
Apache has no idea how the client got his IP address, before sending 
this request.  It may be that the client DNS was wrong, and gave it a 
wrong IP address for "thename.of.your.virtualhost.com", but Apache knows 
nothing of that.

b) if anything in-between the client and the server is intercepting that 
connection, and for some reason directing it somewhere else than it 
should, it will end up on another host, which maybe does not know the 
VirtualHost named "thename.of.your.virtualhost.com", and will thus 
respond with its default VirtualHost.

c) If your client is getting a 301 response at some point, then it means 
that something sent that response.
Apache by itself will not send back a 301 response, unless you 
explicitly tell it to do that somewhere in the configuration.
So if it is not Apache, it is something else that is in-between your 
client and Apache.
A proxy server ? a firewall ?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



----------------------------------------------------------------------
Dzwon taniej na zagraniczne komorki!
Sprawdz >> http://link.interia.pl/f1f26 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux