<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<div class="moz-text-html" lang="x-western">Thanks for the reply.&nbsp;
Responses from our ops guy below: <br>
<br>
<div class="gmail_quote">
<blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Yep,
looks like empty gzip file indeed. &nbsp;Such spurious bytes<br>
before response may theoretically happen if subrequests are used<br>
incorrectly (i.e.: do you use any 3rd party/your own modules?).<br>
</blockquote>
<div><br>
No.<br>
&nbsp;</div>
<blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Could
you please show nginx -V output and your config?<br>
</blockquote>
<div><br>
nginx version: nginx/0.7.65<br>
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-46)<br>
TLS SNI support disabled<br>
configure
arguments: --user=nginx --group=nginx --prefix=/usr/share/nginx
--sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf
--error-log-path=/var/log/nginx/error.log
--http-log-path=/var/log/nginx/access.log
--http-client-body-temp-path=/var/lib/nginx/tmp/client_body
--http-proxy-temp-path=/var/lib/nginx/tmp/proxy
--http-fastcgi-temp-path=/var/lib/nginx/tmp/fastcgi
--pid-path=/var/run/nginx.pid --lock-path=/var/lock/subsys/nginx
--with-http_ssl_module --with-http_realip_module
--with-http_addition_module --with-http_sub_module
--with-http_dav_module --with-http_flv_module
--with-http_gzip_static_module --with-http_stub_status_module
--with-http_perl_module --with-mail --with-mail_ssl_module
--with-cc-opt='-O2 -g -m64 -mtune=generic'<br>
<br>
nginx.conf:<br>
<br>
worker_processes&nbsp; 1;<br>
<br>
events {<br>
&nbsp;&nbsp;&nbsp; worker_connections&nbsp; 1024;<br>
}<br>
<br>
<br>
http {<br>
&nbsp;&nbsp;&nbsp; include /etc/nginx/conf.d/*.conf;<br>
&nbsp;&nbsp;&nbsp; include mime.types;<br>
&nbsp;&nbsp;&nbsp; include ipban.conf;<br>
&nbsp;&nbsp;&nbsp; include /etc/nginx/proxy.conf;<br>
<br>
&nbsp;&nbsp;&nbsp; default_type&nbsp; application/octet-stream;<br>
<br>
&nbsp;&nbsp;&nbsp; log_format&nbsp; main&nbsp; '$host $remote_addr - $remote_user [$time_local]
"$request" '<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '$status $body_bytes_sent "$http_referer" '<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; '"$http_user_agent" "$http_x_forwarded_for"
"$sent_http_content_type"';<br>
<br>
&nbsp;&nbsp;&nbsp; access_log /var/log/nginx/access.log main;<br>
<br>
&nbsp;&nbsp;&nbsp; log_format statusonly '$status';<br>
&nbsp;&nbsp;&nbsp; access_log /var/log/nginxpub/status.log statusonly;<br>
<br>
&nbsp;&nbsp;&nbsp; sendfile&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; on;<br>
&nbsp;&nbsp;&nbsp; tcp_nopush&nbsp;&nbsp;&nbsp;&nbsp; on;<br>
<br>
&nbsp;&nbsp;&nbsp; keepalive_timeout&nbsp; 65;<br>
<br>
&nbsp;&nbsp;&nbsp; gzip&nbsp; on;<br>
&nbsp;&nbsp;&nbsp; gzip_proxied any;<br>
&nbsp;&nbsp;&nbsp;
gzip_types&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; text/plain text/html text/css application/x-javascript
text/xml application/xml application/xml+rss text/javascript;<br>
<br>
<br>
&nbsp;&nbsp;&nbsp; add_header P3P 'policyref="<a
 href="http://www.somesite.com/w3c/p3p.xml">http://www.somesite.com/w3c/p3p.xml</a>",
CP="NOI DSP COR CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT"';<br>
}<br>
<br>
proxy.conf:<br>
<br>
proxy_redirect&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; off;<br>
proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $host;<br>
proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X-Real-IP&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $remote_addr;<br>
proxy_set_header&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; X-Forwarded-For $proxy_add_x_forwarded_for;<br>
client_max_body_size&nbsp;&nbsp;&nbsp; 200m;<br>
client_body_buffer_size 128k;<br>
proxy_connect_timeout&nbsp;&nbsp; 90;<br>
proxy_send_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 90;<br>
proxy_read_timeout&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 90;<br>
proxy_buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 4 64k;<br>
proxy_buffer_size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 64k;<br>
large_client_header_buffers 32 4k;<br>
<br>
conf.d/example.conf<br>
<br>
server {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; listen&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 80;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; server_name&nbsp; <a href="http://example.com">example.com</a>;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include /etc/nginx/extconf/example/nginxipban.conf;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; location / {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; proxy_pass&nbsp;&nbsp; <a href="http://varnish:6081">http://varnish:6081</a>;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>
}<br>
<br>
<br>
<br>
</div>
<blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If
you are able to reproduce the problem it whould be helpfull to<br>
look into problematic request/response debug log as well. &nbsp;See<br>
here for details:<br>
</blockquote>
</div>
<br>
We'll enable this log for one of the smaller sites we've been seeing
this on, and see if anything interesting comes up.<br>
<br>
<br>
Thanks!<br>
Frank<br>
</div>
</body>
</html>