Skip to content

Instantly share code, notes, and snippets.

@rainly
Forked from alvin2ye/nginx.conf
Created March 23, 2011 09:53
Show Gist options
  • Select an option

  • Save rainly/882871 to your computer and use it in GitHub Desktop.

Select an option

Save rainly/882871 to your computer and use it in GitHub Desktop.
app = proc do |env|
return [200, { "Content-Type" => "text/html" }, "hello <b>world</b>"]
end
run app
worker_processes 1;
events {
worker_connections 1024;
}
http {
passenger_root /opt/ruby-enterprise-1.8.7-2010.02/lib/ruby/gems/1.8/gems/passenger-2.2.14;
passenger_ruby /opt/ruby-enterprise-1.8.7-2010.02/bin/ruby;
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name rack1.loc;
root /home/agideo/projects/rake1/public;
passenger_enabled on;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment