<!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.
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. 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>
</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 1;<br>
<br>
events {<br>
worker_connections 1024;<br>
}<br>
<br>
<br>
http {<br>
include /etc/nginx/conf.d/*.conf;<br>
include mime.types;<br>
include ipban.conf;<br>
include /etc/nginx/proxy.conf;<br>
<br>
default_type application/octet-stream;<br>
<br>
log_format main '$host $remote_addr - $remote_user [$time_local]
"$request" '<br>
'$status $body_bytes_sent "$http_referer" '<br>
'"$http_user_agent" "$http_x_forwarded_for"
"$sent_http_content_type"';<br>
<br>
access_log /var/log/nginx/access.log main;<br>
<br>
log_format statusonly '$status';<br>
access_log /var/log/nginxpub/status.log statusonly;<br>
<br>
sendfile on;<br>
tcp_nopush on;<br>
<br>
keepalive_timeout 65;<br>
<br>
gzip on;<br>
gzip_proxied any;<br>
gzip_types text/plain text/html text/css application/x-javascript
text/xml application/xml application/xml+rss text/javascript;<br>
<br>
<br>
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 off;<br>
proxy_set_header Host $host;<br>
proxy_set_header X-Real-IP $remote_addr;<br>
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>
client_max_body_size 200m;<br>
client_body_buffer_size 128k;<br>
proxy_connect_timeout 90;<br>
proxy_send_timeout 90;<br>
proxy_read_timeout 90;<br>
proxy_buffers 4 64k;<br>
proxy_buffer_size 64k;<br>
large_client_header_buffers 32 4k;<br>
<br>
conf.d/example.conf<br>
<br>
server {<br>
listen 80;<br>
server_name <a href="http://example.com">example.com</a>;<br>
<br>
include /etc/nginx/extconf/example/nginxipban.conf;<br>
<br>
location / {<br>
proxy_pass <a href="http://varnish:6081">http://varnish:6081</a>;<br>
}<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. 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>