Apache like redirect for a location in Nginx

In Apache i used something like:

Redirect permanent /images/ http://www.s3-imageserver.com/myimages/

to redirect a certain direcotory to another server.

In Nginx there is no redirect, so we gotta use something like:

location /images {
  rewrite /images/ http://www.s3-imageserver.com/myimages/ permanent;
}
share