Nginx redirect for /blog

Posted: June 7, 2009 | Categories: Uncategorized

It took me quite a while to figure out how to do an Nginx redirect for http://docley.com/blog

Here is how to do it:

## NGINX: permanently redirect local url to /blog

server {
    listen   80;
    server_name docley.com;

    location /blog {
      rewrite ^ http://docleyblog.com permanent;
    }
}
Please Share:
  • Digg
  • Mixx
  • Google Bookmarks
  • Twitter
  • HackerNews

Leave a Reply