# For a single url
location = /old/path{
	return 301 http://foo.com/new/url
}

# For complete section - wildcard
location ~ /old/(.*){
	return 301 http://foo.com/new/$1
}