Skip to content

Instantly share code, notes, and snippets.

@kemitchell
Created January 25, 2015 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kemitchell/b93f18930e8fa0e75b69 to your computer and use it in GitHub Desktop.
Save kemitchell/b93f18930e8fa0e75b69 to your computer and use it in GitHub Desktop.
Remote NGINX reverse proxy for development use
upstream development {
server 127.0.0.1:8080;
server 127.0.0.1:4000;
}
server {
listen 80;
server_name dev.kemitchell.com;
location / {
proxy_pass http://development;
error_page 502 = @handle_502;
}
location @handle_502 {
return 302 $scheme://kemitchell.com;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment