Created
November 11, 2014 22:27
-
-
Save peterbe/20b8a0923793d99b682f to your computer and use it in GitHub Desktop.
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 { | |
root /Users/peterbe/dev/MOZILLA/BALROG/balrog-ui/dist; | |
server_name balrog.prod; | |
proxy_set_header Host $host; | |
location ^~ /api/ { | |
proxy_pass http://127.0.0.1:9000; | |
break; | |
} | |
location / { | |
if (-f $request_filename/index.html) { | |
rewrite (.*) $1/index.html break; | |
} | |
if (-f $request_filename) { | |
break; | |
} | |
if (!-f $request_filename) { | |
rewrite (.*) /index.html break; | |
} | |
} | |
access_log /tmp/nginx.access.log combined; | |
error_log /tmp/nginx.error.log info; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment