In my log files, every http request shows double times.
122.193.13.10 - - [27/Nov/2009:13:39:46 +0800] “GET /images/fanfou.gif
HTTP/1.1” 200 149 “http://www.xxx.com” “Mozilla/4.0…”
122.193.13.10 - - [27/Nov/2009:13:39:46 +0800] “GET /images/fanfou.gif
HTTP/1.1” 200 149 “http://www.xxx.com” “Mozilla/4.0…”
I’m using Nginx 0.7.63 on windows 2003. The problem doesn’t occur on
windows xp with the same config file and code.
So, does it mean that client sends double requests or this is just an
bug of Nginx’s logger module?
Thanks
Posted at Nginx Forum:
Thanks Jimmy,
It seems not double requests. Although every request shows twice in
Nginx’s log, in my backend (Tomcat)'s log, only 1 record for each
request.
So I guess, my server doesn’t received double requests, but just Nginx
outputs logs double times.
The weird thing is in one of my Windows 2003 server the log is normal
but in my another one, the log shows two times. The config files and
code are totally same.
The only difference might be the versions of Windows 2003. It’s really
confused.
–
Allen
Posted at Nginx Forum:
The config files are same. I copy & paste from one to another one.
Nginx version is same as well. Nginx 0.7.63 for windows
OS is Windows 2003. There is few difference. The abnormal one is 2003
enterprise version while the normal one is standard version.
Posted at Nginx Forum:
Thanks Jimmy,
The problem has been solved by adding “buffer=32k” for access_log
Module ngx_http_log_module
Posted at Nginx Forum:
Was it ever determined whether this was an issue with the logger or with
double-connections? I’m getting double-log entries while using nginx as
a load balancer in front of 3 other servers. For a double-log entry on
nginx side, there are two individual log entries on the target servers.
Any idea if my issue is related to this one?
Posted at Nginx Forum:
I will, I’ve got the latest built now with --with-debug but I have to
wait until this evening to install into production, I’ll know more in a
couple of days.
Posted at Nginx Forum:
Hi,
Sorry I don’t want to be redundant. But are the versions(os and servers)
on the two servers the same?
I don’t know the equivalent on windows, but on linux I would use the
diff command to compare the configurations.
If the servers are the same have you used the equivalent ‘diff’ command
to compare the configurations?
Jimmy
Hi,
Double requests are little complicated.
Can you repeat the error with other OS’s/browsers?
Thanks,
Jimmy
Hi,
Have you tested to see if the problem happens on the exact same os
version?
Jimmy
On Sat, Nov 28, 2009 at 02:43:04AM -0500, rayallenwu wrote:
Thanks Jimmy,
The problem has been solved by adding “buffer=32k” for access_log
Module ngx_http_log_module
Could you create debug log without the buffer ?
error_log /path/to/log debug;
–
Igor S.
http://sysoev.ru/en/