Skip to content

Instantly share code, notes, and snippets.

@phuesler
Created July 8, 2009 10:59
Show Gist options
  • Save phuesler/142743 to your computer and use it in GitHub Desktop.
Save phuesler/142743 to your computer and use it in GitHub Desktop.
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /usr/lib/ruby/gems/1.8/gems/passenger-2.2.4;
passenger_ruby /usr/bin/ruby1.8;
include mime.types;
default_type application/octet-stream;
sendfile on;
tcp_nopush on;
keepalive_timeout 65;
gzip on;
gzip_http_version 1.0;
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;
client_max_body_size 5M;
server {
listen 80;
server_name localhost;
root /home/kafka/apps/cootweet/public; # <--- be sure to point to 'public'!
passenger_enabled on;
location ~* \.(ico|css|js|gif|jp?g|png)(\?[0-9]+)?$ {
expires max;
break;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment