Skip to content

Instantly share code, notes, and snippets.

@peterbe
Created November 11, 2014 22:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterbe/20b8a0923793d99b682f to your computer and use it in GitHub Desktop.
Save peterbe/20b8a0923793d99b682f to your computer and use it in GitHub Desktop.
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