Created
June 22, 2017 09:45
-
-
Save tompec/bc546b2222b233e571bec987904a797b to your computer and use it in GitHub Desktop.
Redirect IP to domain name in NGINX
This file contains hidden or 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 { | |
server_name 123.456.789.123; | |
return 301 $scheme://www.domain.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment