pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 75;
proxy_buffering off;
log_not_found off;
error_log /dev/null;
access_log off;
proxy_connect_timeout 20;
client_header_timeout 60;
client_body_timeout 60;
send_timeout 60;
server {
listen 127.0.0.1:80;
location /nginx_status {
stub_status on;
access_log off;
allow 127.0.0.1;
deny all;
}
}
server {
listen in:80;
server_name dev.portero.com;
location ~ ^/(skin|media)/ {
root /mnt/fs/vhosts/dev.portero.com/public_html;
expires 30d;
}
location / {
proxy_pass http://portero;
}
}
upstream portero {
server out1;
server out2;
}
}
Related articles by Zemanta
- Handling web servers of high traffic sites (slideshare.net)
Link to this post!

![Reblog this post [with Zemanta]](http://img.zemanta.com/reblog_c.png?x-id=3fa018f5-eea3-41b1-ad02-525711a40304)