Skip to content

Instantly share code, notes, and snippets.

@boutell
Created June 6, 2014 15:47
nginx redirect example
server {
listen 80;
server_name oldname;
location / {
rewrite ^(.*)$ http://newname$1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment