Skip to content

Instantly share code, notes, and snippets.

@avxkim
Last active October 30, 2017 14:19
Show Gist options
  • Save avxkim/e0401835bf92f297e4d1c660fbe2833b to your computer and use it in GitHub Desktop.
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.
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