Last active
October 30, 2017 14:19
-
-
Save avxkim/e0401835bf92f297e4d1c660fbe2833b to your computer and use it in GitHub Desktop.
Example: You have site under domain proxy.com, you want to show website from mirror.com on that domain, you can do the following code to make it work.
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; | |
server_name mirror.com www.mirror.com; | |
location / { | |
proxy_pass http://mirror.com; | |
proxy_set_header Host mirror.com; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment