Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created April 12, 2013 20:10
Show Gist options
  • Select an option

  • Save edipofederle/5374742 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/5374742 to your computer and use it in GitHub Desktop.
#user nobody;
worker_processes 1;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
passenger_root /root/.rbenv/versions/1.9.3-p194/lib/ruby/gems/1.9.1/gems/passenger-3.0.19;
passenger_ruby /root/.rbenv/versions/1.9.3-p194/bin/ruby;
include mime.types;
default_type application/octet-stream;
#access_log logs/access.log main;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
client_max_body_size 2G;
server_name localhost;
keepalive_timeout 5;
root /var/www/apps/blog/current/public;
access_log on;
error_log on;
passenger_enabled on;
rails_env production;
if ($request_method !~ ^(GET|HEAD|PUT|POST|DELETE|OPTIONS)$ ){
return 405;
}
location / {
try_files $uri/index.html $uri.html;
error_page 404 /404.html;
error_page 422 /422.html;
error_page 500 502 503 504 /500.html;
error_page 403 /403.html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment