Instantly share code, notes, and snippets.

Embed
What would you like to do?

###Редирект с помощью 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