Skip to content

Instantly share code, notes, and snippets.

@stochastic-thread
Created June 24, 2015 19:33
Show Gist options
  • Save stochastic-thread/2dc3739fdb318472c303 to your computer and use it in GitHub Desktop.
Save stochastic-thread/2dc3739fdb318472c303 to your computer and use it in GitHub Desktop.
upstream trophus {
server 127.0.0.1:4000;
}
server{
listen 80;
server_name trophus.com;
location / {
try_files $uri @proxy;
}
location @proxy {
include proxy_params;
proxy_redirect off;
proxy_pass http://trophus;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment