nginx - redirect a certain path to another domain

Posted by Eli on Stack Overflow See other posts from Stack Overflow or by Eli
Published on 2010-06-10T19:18:48Z Indexed on 2010/06/10 19:23 UTC
Read the original article Hit count: 250

Filed under:
|
|
|

Hey there.

I am very unfamiliar with nginx, as a forewarning, and also can't find any actual references on the regex system they use. So right now it's a black box to me.

All I want to do is redirect a user trying to go to www.mydomain.com/mydirectory/X to www.myotherdomain.com/X .

Seems like I should be using the rewrite command but the syntax of the regex is eluding me.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about regex

Related posts about redirect