user www-data; worker_processes 4; error_log /var/log/nginx/error.log; pid <%= pid_file %>; events { worker_connections 1024; } http { include /usr/local/nginx/conf/mime.types; default_type application/octet-stream; upstream php { server unix:/tmp/php-cgi.socket; server 127.0.0.1:9000; } access_log /var/log/nginx/access.log; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; tcp_nodelay on; gzip on; gzip_comp_level 2; gzip_proxied any; gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript; passenger_root /usr/local/ruby/lib/ruby/gems/1.9.1/gems/passenger-<%= version %>; passenger_ruby /usr/local/ruby/bin/ruby; passenger_max_pool_size 10; include /etc/nginx/fastcgi.conf; include /etc/nginx/sites-enabled/*; }