Skip to content

Instantly share code, notes, and snippets.

@joeljackson
Created January 7, 2016 23:54
Show Gist options
  • Save joeljackson/375d0de5b42dce05ff81 to your computer and use it in GitHub Desktop.
Save joeljackson/375d0de5b42dce05ff81 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name pl.honest.dev;
location / {
root /Users/joelj/projects/honest/project_lawrence;
try_files /system/maintenance.html $uri $uri/index.html $uri.html @ruby;
}
location @ruby {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://upstream_honest_lawrence;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment