Created
July 8, 2009 10:59
-
-
Save phuesler/142743 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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