Apache like redirect for a location in Nginx

02/11/2010
0

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;
}

If you've read this far you might as well follow me on Twitter here.


Comments