I'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 <<a href="mailto:dave@cheney.net">dave@cheney.net</a>> 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'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'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'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'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'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 4;<br>
<br>
events {<br>
worker_connections 1024;<br>
}<br>
<br>
http {<br>
include mime.types;<br>
default_type application/octet-stream;<br>
<br>
sendfile on;<br>
tcp_nopush on;<br>
<br>
keepalive_timeout 65;<br>
<br>
gzip on;<br>
gzip_types text/plain text/html text/css application/x-javascript<br>
text/xml application/xml application/xml+rss ext/javascript;<br>
<br>
server {<br>
listen 80;<br>
server_name localhost;<br>
<br>
location / {<br>
root /usr/local/www/data;<br>
index indexd12.html;<br>
}<br>
<br>
error_page 404 /404.html;<br>
<br>
}<br>
}<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</div></div></blockquote></div><br>