Last active
December 20, 2015 13:09
-
-
Save bendman/6136855 to your computer and use it in GitHub Desktop.
Nginx Config for Boston Bike Party App
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
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