HEAD and Nginx nginx-0.6.36-1.el5
Gena Makhomed
gmm at csdoc.com
Tue Sep 15 13:34:47 MSD 2009
On Tuesday, September 15, 2009 at 11:32:15, xmichielx wrote:
>> The apache log:
>> 172.21.0.5 - - [10/Sep/2009:20:12:56 +0200] "HEAD /MYLER.htm HTTP/1.0" 404 - "-" "Mozilla/4.06 (WinNT; I)"
>> 172.21.0.5 - - [10/Sep/2009:20:12:56 +0200] "HEAD /MYCE.htm HTTP/1.0" 404 - "-" "Mozilla/4.06 (WinNT; I)"
>> stmycew01.hf.info.nl - - [10/Sep/2009:20:12:58 +0200] "GET /404.html HTTP/1.0" 200 6507 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)l"
>> stmycew01.hf.info.nl - - [10/Sep/2009:20:12:58 +0200] "GET /404.html HTTP/1.0" 200 6507 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)l"
>> stmycew01.hf.info.nl - - [10/Sep/2009:20:12:58 +0200] "HEAD /web/MYLER.htm HTTP/1.0" 404 - "-" "Mozilla/4.06 (WinNT; I)"
your apache return 404 error to nginx, and nginx return 404 error to client.
there is no problems with nginx - it work as expected.
>> Only apache on port 80 (normal setup):
>> stmycew01.hf.info.nl - - [11/Sep/2009:10:42:57 +0200] "HEAD /MYLER.htm HTTP/1.1" 200 - "-" "Mozilla/4.06 (WinNT; I)"
>> stmycew01.hf.info.nl - - [11/Sep/2009:10:42:57 +0200] "HEAD /web/MYLER.htm HTTP/1.1" 200 - "-" "Mozilla/4.06 (WinNT; I)"
x> The strange thing is: HEAD works with a redirect in a normal Apache setup
x> but with a Nginx redirect setup (see my config above here) I get a 404
x> from the Apache and Nginx, I think the request isn't correctly entering Apache.
useless. make tcpdump of tcp session between nginx frontend
and apache backend and see - correct request or not correct.
btw, apache save the request to logfile: "HEAD /MYLER.htm HTTP/1.0"
there is nothing incorrect in this request, from my point of view.
x> Can it be a change in the HTTP 1.0 and HTTP1.1 diffirence?
make HTTP/1.1 and HTTP/1.0 request
to backend from curl and get to know.
also make direct request to 80 port and 81 port of apache,
*don't using nginx at all* and also see - it work as expected or not.
for all four requests ( HTTP/1.1 or HTTP/1.0 ) x ( port 80 or port 81 )
use only curl, not web browser. after such debug situation must be clear.
--
Best regards,
Gena
More information about the nginx
mailing list