You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by dean gaudet <dg...@arctic.org> on 2001/02/26 00:20:10 UTC
Re: protocol question, Roy?
On Fri, 26 Jan 2001 rbb@covalent.net wrote:
> Try this on any version of Apache:
>
> telnet localhost 8080
> GET http://www.yahoo.com/ HTTP/1.0
>
> This will get you the index of the current machine.
that is correct. and you'll get the index of the "current machine" (i.e.
default server) if you do this as well:
GET / HTTP/1.0
Host: www.yahoo.com
there's no way in hell apache can know all the names which refer to the
server. any client out there can be configured with any DNS view they
want. there's no lookup apache can do to figure out what the client
meant. (especially when you consider the client can be configured with a
different dns search path ... and the user may just refer to a host named
"fred" whose full name is "fred.wilma.com".)
i think there's more reasons for this, but i'm too lazy to search the
archives to find them all.
-dean