How do you redirect a subdirectory of an nginx website go to another webserver?

Posted by MikeN on Server Fault See other posts from Server Fault or by MikeN
Published on 2009-09-05T21:03:28Z Indexed on 2010/06/01 18:44 UTC
Read the original article Hit count: 218

Filed under:

How would I redirect all of the traffic from http://mysite.com/blog to a different server running at http://blog.mysite.com???

I want to do a 301 permanent redirect from http://blog.mysite.com to http://mysite.com/blog, but I want to keep the blog server running on http://blog.mysite.com, but I want it to appear to the user that they are viewing http://mysite.com/blog.

© Server Fault or respective owner

Related posts about nginx