My guess is that the Java applet isn&#39;t telling the server that it can accept compressed content when it makes the requests to nginx.  Try configuring the applet to tell the server to send gzipped content.  Note that it&#39;s possible that Java applets may not be able to handle compressed content at all, in which case it&#39;s a good thing that nginx is not making that assumption.<br>
<br>You should be able to watch the requests with Firebug in Firefox to see the Accept-Encoding header.  If you can&#39;t see the Java applet requests with Firebug (or another Firefox headers extension) you can use Ethereal or a command-line tool on the client or server.<br>
<br>See section 14.3 of the W3&#39;s HTTP/1.1 Header Field Definitions page for more info:<br><a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html">http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html</a><br>
<br><div class="gmail_quote">On Fri, Mar 13, 2009 at 3:41 PM, hirantha <span dir="ltr">&lt;<a href="mailto:hirantha@securedpipe.net">hirantha@securedpipe.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi ALL,<br>
<br>
I am very new to nginx, and I found the nginx is the perfect tool for me to do reverse-proxy while compressing the data. I have successfully configured the proxy_pass and gzip configurations and it is working as I expected in test environments.<br>

<br>
We have web servers which streaming text data through java applet to the end users. Nginx is act as a reverse-proxy for back-end web servers; once the java applet loaded on the FireFox or IE browser it keep receiving data without any issue. But the problem is those text data won&#39;t get compressed though text, images etc loaded to the browser get compressed. I can compress data off the applet but once it send it to java applet, won&#39;t get compressed.<br>

<br>
Here is my nginx.conf:<br>
<br>
http {<br>
   include       mime.types;<br>
   default_type  application/octet-stream;<br>
   sendfile        on;<br>
   keepalive_timeout  65;<br>
# compression<br>
   gzip on;<br>
   gzip_http_version 1.0;<br>
   gzip_comp_level 4;<br>
   gzip_proxied private;<br>
   gzip_min_length  1100;<br>
   gzip_buffers 16 8k;<br>
   gzip_types text/plain text/html text/css application/x-javascript \<br>
       text/xml application/xml application/xml+rss text/javascript \<br>
       image/gif image/jpeg image/png;<br>
   gzip_disable &quot;MSIE [1-6].(?!.*SV1)&quot;;<br>
   gzip_vary on;<br>
   server {<br>
       listen       80;<br>
       server_name  localhost;<br>
<br>
<br>
   location / {<br>
       proxy_pass         <a href="http://data.example.com/" target="_blank">http://data.example.com/</a>;<br>
       proxy_redirect     off;<br>
<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>
       proxy_max_temp_file_size 0;<br>
<br>
       client_max_body_size       10m;<br>
       client_body_buffer_size    128k;<br>
<br>
       proxy_connect_timeout      90;<br>
       proxy_send_timeout         90;<br>
       proxy_read_timeout         90;<br>
<br>
       proxy_buffer_size          4k;<br>
       proxy_buffers              4 32k;<br>
       proxy_busy_buffers_size    64k;<br>
       proxy_temp_file_write_size 64k;<br>
<br>
       }<br>
       error_page   500 502 503 504  /50x.html;<br>
       location = /50x.html {<br>
           root   /usr/local/www/nginx-dist;<br>
       }<br>
<br>
   }<br>
<br>
<br>
I&#39;m Running on FreeBSD7.1 and I googled such scenario but no luck. To get this done where do I have to looking in to..? Any advice is really appreciated<br>
<br>
Thanks in advance<br><font color="#888888">
Hirantha<br>
<br>
</font></blockquote></div><br>