Skip to content

Instantly share code, notes, and snippets.

@STRd6
Created May 6, 2010 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save STRd6/392686 to your computer and use it in GitHub Desktop.
Save STRd6/392686 to your computer and use it in GitHub Desktop.
nginx.conf
user www-data www-data;
worker_processes 3;
error_log /opt/nginx/logs/error.log;
events {
worker_connections 1024;
}
http {
passenger_root /usr/local/rvm/gems/ruby-1.9.2-p180/gems/passenger-3.0.7;
passenger_ruby /usr/local/rvm/wrappers/ruby-1.9.2-p180/ruby;
passenger_max_pool_size 4;
passenger_max_instances_per_app 3;
include /opt/nginx/conf/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] $status '
'"$request" $body_bytes_sent "$http_referer" '
'"$http_user_agent" "http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip on;
gzip_comp_level 3;
gzip_proxied any;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
# Finds all Merb/Rails apps
# Each app has to have nginx.conf file in config directory
include /u/apps/*/current/config/nginx.conf;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment