Weird difference between nginx and apache...

Arvind Jayaprakash work at anomalizer.net
Sun Nov 23 14:26:40 MSK 2008


Robert Gabriel wrote:
> [root at srv1 ~]# curl -I -L srv1.viperhost.net/
> HTTP/1.1 200 OK
> Server: Nginx
> Date: Sun, 23 Nov 2008 09:57:54 GMT
> Content-Type: text/html
> Connection: keep-alive
> Keep-Alive: timeout=65
> X-Powered-By: PHP/5.2.6
>
> [root at srv1 ~]# curl -I -L srv1.viperhost.net:8080/
> HTTP/1.1 200 OK
> Date: Sun, 23 Nov 2008 09:57:59 GMT
> Server: Apache/2.0.63 (Linux/64)
> X-Powered-By: PHP/5.2.6
> Vary: Accept-Encoding
> Content-Type: text/html
>
> [root at srv1 ~]#
>
> Here it is:
>
> [root at srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net:8080/img.png
> Total transferred:      1757049 bytes
> HTML transferred:       1463000 bytes
> [root at srv1 ~]# ab -n 1000 -c 200 -k srv1.viperhost.net/img.png
> Total transferred:      1697000 bytes
> HTML transferred:       1463000 bytes
>   

As you can see, the *HTML transferred* matches exactly in both cases, so
you know that there is no problem with the data being returned.
HTML = size of the body alone i.e. the image
Total = header + body





More information about the nginx mailing list