Skip to content

Instantly share code, notes, and snippets.

@muhfaris
Created January 11, 2018 09:50
Show Gist options
  • Save muhfaris/203b9806ff3979f2a344c0eb029e5567 to your computer and use it in GitHub Desktop.
Save muhfaris/203b9806ff3979f2a344c0eb029e5567 to your computer and use it in GitHub Desktop.
reserve proxy : from ip address to domain name
server {
listen 80;
server_name xxx.xxx.xxx.xxx;
# or
# server_name default_server
return 301 $scheme://domain.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment