Skip to content

Instantly share code, notes, and snippets.

@foxweb
Created November 22, 2011 14:36
Show Gist options
  • Select an option

  • Save foxweb/1385795 to your computer and use it in GitHub Desktop.

Select an option

Save foxweb/1385795 to your computer and use it in GitHub Desktop.
user www-data;
worker_processes 1;
error_log logs/error.log;
pid /opt/nginx/logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.8.7-p334/gems/passenger-3.0.9;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.8.7-p334/ruby;
upstream fpm {
server 127.0.0.1:9000;
}
include mime.types;
default_type text/html;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
tcp_nodelay on;
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
client_max_body_size 64m;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment