Created
June 12, 2014 21:17
-
-
Save irazasyed/4d0fd47a86cd766363c1 to your computer and use it in GitHub Desktop.
NginX: Redirect WWW to non-WWW URL.
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 { | |
| listen 80; | |
| listen 443 ssl; | |
| server_name www.domain.tld; | |
| return 301 $scheme://domain.tld$request_uri; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment