posted on Thursday, April 22, 2004 10:50 PM
by
demiliani
The mistery of my ISP
Today a typing error helps me to discover a curios thing from my ISP.
My personal site is hosted on a Windows 2003 Server from Aruba. Today I've opened my browser and typed the url to reach a subpage of my site. I've forgotten to type the WWW prefix and the typed url was something like "http://demiliani.it/MySubPage" (where MySubPage exists on my server).
What was the result? An error page like this:
Not Found
The requested URL /MySubPage was not found on this server.
-------------------------------------------------------
Apache/2.0.48 (Fedora) Server at demiliani.it Port 80
Apache??? Fedora??? Linux??? But I've a Windows 2003 hosting... why???
This thing was curious, so the first thing I've done is typing "http://demiliani.it" to see what happens... the result was correct, I was redirected to my site.
The second thing I've done is typing "http://www.demiliani.it/SubPageThatNotExists" (where SubPageThatNotExists is a subpage that I've not on my server).
The result? The normal IIS 6 page 404 (not found). Correct!
I was surprised. Why this? I've decided to check better...
I was gone to a Linux server that I have for hosting and I've done the tasks that I've posted below:
demy@vaiolo:~$ telnet www.demiliani.it 80 Trying 62.149.130.111... Connected to webs101.aruba.it. Escape character is '^]'. GET / HTTP/1.0
HTTP/1.1 200 OK Connection: close Date: Wed, 21 Apr 2004 20:56:58 GMT Server: Microsoft-IIS/6.0 X-Powered-By: ASP.NET Content-Length: 147 Content-Type: text/html Set-Cookie: ASPSESSIONIDQCBTADTR=NJCAFBGDDGAKHJFHHFOFHOMH; path=/ Cache-control: private
<html> <head> <title>Server Status</title> </head> <body> <h2>
</h2> <br> <h2>Server Status:</h2> <h3>Server Up</h3> </body> </html> Connection closed by foreign host. Here the server has responded and it's IIS 6.0 correctly. demy@vaiolo:~$ dig www.demiliani.it a Here I've asked the DNS for the IPv4 address of the domain host for WWW.demiliani.it and this is the response:
; <<>> DiG 9.2.3 <<>> www.demiliani.it a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59970 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION: ;www.demiliani.it. IN A
;; ANSWER SECTION: www.demiliani.it. 84246 IN A 62.149.130.111 The Host IPv4 Address ;; AUTHORITY SECTION: demiliani.it. 84246 IN NS dns2.technorail.com. demiliani.it. 84246 IN NS dns.technorail.com. The DNS servers for the Domain
;; Query time: 47 msec ;; SERVER: 62.101.66.81#53(62.101.66.81) ;; WHEN: Wed Apr 21 22:56:58 2004 ;; MSG SIZE rcvd: 101
demy@vaiolo:~$ dig demiliani.it a Here I've asked the DNS for the IPv4 address of the domain host for demiliani.it and this is the response:
; <<>> DiG 9.2.3 <<>> demiliani.it a ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 52385 ;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 2, ADDITIONAL: 0
;; QUESTION SECTION: ;demiliani.it. IN A
;; ANSWER SECTION: demiliani.it. 74229 IN A 62.149.128.72 demiliani.it. 74229 IN A 62.149.128.74 demiliani.it. 74229 IN A 62.149.128.151 demiliani.it. 74229 IN A 62.149.128.154 demiliani.it. 74229 IN A 62.149.128.157 demiliani.it. 74229 IN A 62.149.128.160 demiliani.it. 74229 IN A 62.149.128.163 demiliani.it. 74229 IN A 62.149.128.166 These are the IPv4 addresses for this domain name
;; AUTHORITY SECTION: demiliani.it. 84239 IN NS dns.technorail.com. demiliani.it. 84239 IN NS dns2.technorail.com. The DNS servers for the Domain
;; Query time: 6 msec ;; SERVER: 62.101.66.81#53(62.101.66.81) ;; WHEN: Wed Apr 21 22:57:04 2004 ;; MSG SIZE rcvd: 209
Now, I've tryed to do an HTTP connection to demiliani.it at the first domain address (port 80) and this is the response:
demy@vaiolo:~$ telnet 62.149.128.163 80 Trying 62.149.128.163... GET / Connected to 62.149.128.163. Escape character is '^]'. HTTP/1.0
HTTP/1.1 200 OK Date: Wed, 21 Apr 2004 20:58:43 GMT Server: Apache/2.0.48 (Fedora) Last-Modified: Tue, 13 Apr 2004 16:04:53 GMT ETag: "7706-42-5b77340" Accept-Ranges: bytes Content-Length: 66 Connection: close Content-Type: text/html; charset=UTF-8
<META HTTP-EQUIV="refresh" CONTENT="0; URL=cgi-bin/redirect.cgi"> Connection closed by foreign host. As you can see, there's a redirect.cgi page that redirects all the requests to the correct domain.
After that, I've tryed to do an HTTP connection to the same domain (demiliani.it), but the request (GET) was to a page that not exists on my server (page PIPPO): demy@vaiolo:~$ telnet demiliani.it 80 Trying 62.149.128.72... Connected to demiliani.it. Escape character is '^]'. GET /pippo HTTP/1.0 (Here the page request)
and this is the response:
HTTP/1.1 404 Not Found Date: Wed, 21 Apr 2004 21:00:08 GMT Server: Apache/2.0.40 (Red Hat Linux) Vary: accept-language Accept-Ranges: bytes Connection: close Content-Type: text/html; charset=ISO-8859-1 Expires: Wed, 21 Apr 2004 21:00:08 GMT
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <title>Object not found!</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rev="made" href="mailto:postmaster@aruba.it" /> <style type="text/css"> <!-- body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } --> </style> </head>
<body> <h1>Object not found!</h1> <dl> <dd>
The requested URL was not found on this server.
If you entered the URL manually please check your spelling and try again.
</dd></dl><dl><dd> If you think this is a server error, please contact the <a href="mailto:postmaster@aruba.it">webmaster</a>
</dd></dl>
<h2>Error 404</h2> <dl> <dd> <address> <a href="/">localhost.localdomain</a> <br />
<small>Wed Apr 21 23:00:08 2004</small> <br /> <small>Apache/2.0.40 (Red Hat Linux)</small> </address> </dd> </dl> </body> </html>
Connection closed by foreign host. |
Curious... the mistery is revealed: the server for the domain (without WWW) is a Linux Server... mistery of Aruba 