Created
April 4, 2018 15:26
-
-
Save pratheekhegde/c4af2052b23e2ebe72e7ac4dc627bdaa to your computer and use it in GitHub Desktop.
Redirect subdomains 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 s1.website.com; | |
return 301 https://s2.website.com$request_uri; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment