nginx

September 3, 2007 — Leave a comment

I switched from apache + mod_proxy_balancer to nginx, which on my lame VPS is saving me around 14 precious MB of memory. There are so many reasons to use nginx. Ezra recommends the monit + nginx + mongrel_cluster stack, and my friend/co-worker has a great conf to start with. It took me about 5 minutes to setup, even with multiple hosts.

My nginx.conf and init script.

Nginx is hyper optimized…

1
2
3
4
./ngx_http_upstream.c:        if (h->value.len == 2) {
./ngx_http_upstream.c:            if (c0 == 'n' && c1 == 'o') {
./ngx_http_upstream.c:        } else if (h->value.len == 3) {
./ngx_http_upstream.c:            if (c0 == 'y' && c1 == 'e' && c2 == 's') {

No Comments

Be the first to start the conversation!

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s