Created
August 15, 2012 16:51
-
-
Save jeffreynolte/3361535 to your computer and use it in GitHub Desktop.
Forward all www requests nginx
This file contains 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
# forward all www requests | |
if ($host = www.domain.com) { | |
rewrite ^ http://domain.com$request_uri? permanent; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment