Created
January 25, 2015 03:08
-
-
Save kemitchell/b93f18930e8fa0e75b69 to your computer and use it in GitHub Desktop.
Remote NGINX reverse proxy for development use
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
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