I&#39;m doing that now and it gives a massive boost to performance and file sizes! Dave, any thoughts on the 403 issue?<br><br>Thanks.<br><br><br><div class="gmail_quote">On Sat, Apr 5, 2008 at 12:14 AM, Dave Cheney &lt;<a href="mailto:dave@cheney.net">dave@cheney.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Give the gzip_static module a try to avoid gzip&#39;ing content on the fly<br>
<br>
Use 7za a -tzip -mx9 filename.gz filename<br>
<br>
To achieve the maximum compression up front<br>
<br>
Cheers<br><font color="#888888">
<br>
Dave</font><div><div></div><div class="Wj3C7c"><br>
<br>
On 05/04/2008, at 2:55 PM, Amer wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello guys.<br>
<br>
I wanted to run a particular configuration by you guys to get your thoughts. I&#39;m<br>
moving from lighttpd to nginx.<br>
<br>
First a little bit of background. The site is a single server running FreeBsd.<br>
It&#39;s a Dual Processor Quad Core Xeon 5310 1.60GHz (Clovertown) with a 2 x 8MB<br>
cache and 4 GB RAM. The site serves only static content. There is absolutely<br>
zero dynamic content. No databases involved. Each static file is about 50 kb.<br>
<br>
I get about 3000-3500 requests/second with lightpd and with my initial setup of<br>
nginx I get about the same. While I&#39;m happy with this I used a very simple<br>
config file and just wanted to see if the experienced folks over here could<br>
point out some things that might be able to boost that up even further. It&#39;s<br>
very simple and short (just about 20 lines) and I hope some of you could give me<br>
some advise to get more performance (if possible).<br>
<br>
----------------------------------------------<br>
<br>
worker_processes &nbsp;4;<br>
<br>
events {<br>
 &nbsp; worker_connections &nbsp;1024;<br>
}<br>
<br>
http {<br>
 &nbsp; include &nbsp; &nbsp; &nbsp; mime.types;<br>
 &nbsp; default_type &nbsp;application/octet-stream;<br>
<br>
 &nbsp; sendfile &nbsp; &nbsp; &nbsp; &nbsp;on;<br>
 &nbsp; tcp_nopush &nbsp; &nbsp; on;<br>
<br>
 &nbsp; keepalive_timeout &nbsp;65;<br>
<br>
 &nbsp; gzip &nbsp;on;<br>
 &nbsp; gzip_types &nbsp; &nbsp; &nbsp;text/plain text/html text/css application/x-javascript<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; text/xml application/xml application/xml+rss ext/javascript;<br>
<br>
 &nbsp; server {<br>
 &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; 80;<br>
 &nbsp; &nbsp; &nbsp; server_name &nbsp;localhost;<br>
<br>
 &nbsp; &nbsp; &nbsp; location / {<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; /usr/local/www/data;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; index &nbsp;indexd12.html;<br>
 &nbsp; &nbsp; &nbsp; }<br>
<br>
 &nbsp; &nbsp; &nbsp; error_page &nbsp;404 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;/404.html;<br>
<br>
 &nbsp; }<br>
}<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>