httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: [users@httpd] Host header field: How is it enforced or not at all?
Date Thu, 18 Aug 2005 19:35:53 GMT
Why is that your issue?  This is how google configured their servers.

Read the NameVirtualHost directive; all requests to an unrecognized
host will be routed to the first (default) named virtual host in the
config.

You didn't expect Host: to act as some proxy service, did you?

Khoa Nguyen wrote:
> Hi,
> 
> I don't quite understand the use of the Host: header field in HTTP 1.1 
> request. For example, I wrote a simple script to connect to 
> www.google.com <http://www.google.com> on port 80. After the connection, 
> I send the following GET request:
> 
> GET / HTTP/1.1
> Host: whatever.com <http://whatever.com>
> ...
> 
> The web server doesn't seem to care what I put in the Host field and 
> always returns the google home page. Is this behaviour acceptable? Why a 
> HTTP 1.1 web server insists on the presence of a Host field but doesn't 
> seem to do any kind of checking on it?
> 
> Thanks,
> Khoa

---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message