Skip to content

Instantly share code, notes, and snippets.

@why404
Created December 30, 2009 14:37
Show Gist options
  • Save why404/266085 to your computer and use it in GitHub Desktop.
Save why404/266085 to your computer and use it in GitHub Desktop.
Nginx vhost configuration with a Rails app
server {
listen 80;
server_name example.com www.example.com;
root /home/demo/web/example.com/public;
passenger_enabled on;
index index.html;
charset utf-8;
access_log /dev/null;
error_log /home/demo/web/example.com/log/error.log;
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment