You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Terje Sannum <te...@waste.org> on 2006/11/21 19:47:51 UTC

[users@httpd] Strang successful request

I just noticed this request in the access log on one of my servers:

x.x.x.x - - [21/Nov/2006:18:08:07 +0100] "GET http://cn.yahoo.com/ HTTP/1.1"
200 22 "-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)" 149 268

22 bytes is the size of /index.html on that server, and I'm suprised by that
200 status and try the same GET:

127.0.0.1 - - [21/Nov/2006:18:52:10 +0100] "GET
http://cn.yahoo.com/HTTP/1.1" 400 226 "-" "-" 37 392

More like the response I would expect, I have not loaded mod_proxy. But when
I add the Host header to the request (no virtualhost or servername
configured):

127.0.0.1 - - [21/Nov/2006:19:28:05 +0100] "GET
http://cn.yahoo.com/HTTP/1.1" 200 22 "-" "-" 61 268

The 22 bytes recieved is /index.html.

Anyone have an explanation for this? I'm running the httpd-2.2.2-1.2  apache
package in FC5.

-Terje

Re: [users@httpd] Strang successful request

Posted by Joshua Slive <jo...@slive.ca>.
On 11/21/06, Terje Sannum <te...@waste.org> wrote:
> I just noticed this request in the access log on one of my servers:
>
> x.x.x.x - - [21/Nov/2006:18:08:07 +0100] "GET http://cn.yahoo.com/ HTTP/1.1"
> 200 22 "-" "Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)" 149 268
>
> 22 bytes is the size of /index.html on that server, and I'm suprised by that
> 200 status and try the same GET:
>
>  127.0.0.1 - - [21/Nov/2006:18:52:10 +0100] "GET http://cn.yahoo.com/
> HTTP/1.1" 400 226 "-" "-" 37 392
>
> More like the response I would expect, I have not loaded mod_proxy. But when
> I add the Host header to the request (no virtualhost or servername
> configured):
>
> 127.0.0.1 - - [21/Nov/2006:19:28:05 +0100] "GET http://cn.yahoo.com/
> HTTP/1.1" 200 22 "-" "-" 61 268
>
> The 22 bytes recieved is /index.html.
>
> Anyone have an explanation for this? I'm running the httpd-2.2.2-1.2  apache
> package in FC5.

Yep:
http://httpd.apache.org/docs/1.3/misc/FAQ.html#proxyscan

Joshua.

---------------------------------------------------------------------
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