Skip to content

Instantly share code, notes, and snippets.

@risentveber
Created April 20, 2016 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save risentveber/e71aa964b030380ea19eddca2b58cecd to your computer and use it in GitHub Desktop.
Save risentveber/e71aa964b030380ea19eddca2b58cecd to your computer and use it in GitHub Desktop.

###Редирект с помощью nginx

server {
  #implemented by default, change if you need different ip or port
  #listen *:80 | *:8000;
  server_name test.com;
  return 301 $scheme://www.test.com$request_uri;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment