Created
November 4, 2016 17:13
-
-
Save gwmoura/436b142243d15e4d0639861c386620c4 to your computer and use it in GitHub Desktop.
Nginx Reverse proxy
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
server { | |
listen 80; | |
listen [::]:80; | |
server_name test.com www.test.com; | |
location / { | |
proxy_pass http://app1.com:80001; | |
} | |
} | |
server { | |
listen 80; | |
listen [::]:80; | |
server_name example.com www.example.com; | |
location / { | |
proxy_pass http://app2.com:80002; | |
} | |
} |
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
FROM nginx | |
COPY default.conf /etc/nginx/conf.d/default.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment