nginx regex match server name and redirect

CNAME: sskaje.name => sskaje.me, *.sskaje.name => sskaje.name HTTP redirect: http://xxx.sskaje.name/aaa/bbb => http://xxx.sskaje.me/aaa/bbb

Link to this post!