OK , I will turn it OFF.. is there anything else that can be improved.. ?<br>thanks a lot<br>On Jan 28, 2008 9:14 AM, Igor Clark &lt;<a href="mailto:igor@pokelondon.com">igor@pokelondon.com</a>&gt; wrote:<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;">Off the top of my head, I don&#39;t know if gzipping binary image data is<br>going to get you much except overhead - it&#39;s probably a narrow<br>
calculation though<br><div><div></div><div class="Wj3C7c"><br>On 28 Jan 2008, at 17:02, <a href="mailto:rkmr.em@gmail.com">rkmr.em@gmail.com</a> wrote:<br><br>&gt; this is my config for a web server that does only static files<br>
&gt; mostly gifs, pngs and jpgs.. is there any improvement i can do in<br>&gt; this like is there some sort of caching that can be enabled? or any<br>&gt; other improvements that can be done to this..<br>&gt;<br>&gt; ------------------------------------------------------------------<br>
&gt; #user &nbsp;mark;<br>&gt; worker_processes &nbsp;1;<br>&gt; error_log &nbsp;logs/error_staticfarm.log;<br>&gt;<br>&gt; pid &nbsp; &nbsp; &nbsp; &nbsp;logs/nginx_staticfarm.pid;<br>&gt; events {<br>&gt; &nbsp; &nbsp; worker_connections &nbsp;1024;<br>&gt; }<br>&gt;<br>
&gt; http {<br>&gt; &nbsp; &nbsp; include &nbsp; &nbsp; &nbsp; mime.types;<br>&gt; &nbsp; &nbsp; default_type &nbsp;application/octet-stream;<br>&gt;<br>&gt; &nbsp; &nbsp; #access_log &nbsp;logs/access_staticfarm.log;<br>&gt;<br>&gt; &nbsp; &nbsp; sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;<br>&gt; &nbsp; &nbsp; #tcp_nopush &nbsp; &nbsp; on;<br>
&gt;<br>&gt; &nbsp; &nbsp; keepalive_timeout &nbsp;0;<br>&gt; &nbsp; &nbsp; #keepalive_timeout &nbsp;10;<br>&gt;<br>&gt; &nbsp; &nbsp; gzip &nbsp;on;<br>&gt; &nbsp; &nbsp; server {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; 6080;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;localhost;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; #access_log &nbsp;logs/host.access.log &nbsp;main;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; location /nginx_status {<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; stub_status on;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; off;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; location /static{<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; /home/mark/staticfarm/;<br>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp; off;<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; }<br>&gt; &nbsp; &nbsp; }<br>&gt; }<br>&gt;<br><br></div></div><font color="#888888">--<br>Igor Clark // POKE // 10 Redchurch Street // E2 7DD // +44 (0)20 7749<br>5355 // <a href="http://www.pokelondon.com" target="_blank">www.pokelondon.com</a><br>
<br><br><br><br><br></font></blockquote></div><br>