Skip to content

Instantly share code, notes, and snippets.

@bendman
Last active December 20, 2015 13:09
Show Gist options
  • Save bendman/6136855 to your computer and use it in GitHub Desktop.
Save bendman/6136855 to your computer and use it in GitHub Desktop.
Nginx Config for Boston Bike Party App
server {
listen *:80;
server_name api.bostonbikeparty.com;
error_log /Users/bendman/Documents/Development/bbp/logs/error.log info;
access_log /Users/bendman/Documents/Development/bbp/logs/access.log main;
location / {
proxy_pass http://bostonbikeparty.com:3000;
proxy_set_header Host $http_host;
}
}
server {
listen *:80;
server_name bostonbikeparty.com *.bostonbikeparty.com;
error_log /Users/bendman/Documents/Development/bbp/logs/error.log info;
access_log /Users/bendman/Documents/Development/bbp/logs/access.log main;
location / {
root /Users/bendman/Documents/Development/bbp/public_html;
try_files $uri $uri/ =404;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment