6 messages in ru.sysoev.nginxRe: vburshteyn
FromSent OnAttachments
vburshteynJul 8, 2009 6:18 am 
Igor SysoevJul 9, 2009 7:31 am 
vburshteynJul 9, 2009 12:32 pm 
Igor SysoevJul 9, 2009 12:57 pm 
vburshteynJul 10, 2009 8:56 am 
Igor SysoevJul 10, 2009 9:01 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: vburshteynActions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Jul 9, 2009 12:57:57 pm
List:ru.sysoev.nginx

On Thu, Jul 09, 2009 at 03:33:14PM -0400, vburshteyn wrote:

Igor, thanks, bolshoye spasibo. if you dont mind, one more question on that
topic - how would u do this?

../ this needs to be redirected to

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,3863,3947#msg-3947

Forum's maillist gateway cut some characters:

---------- [affiliate].[www2].[mysite.com]/[boxoffice][what ever the string in here] this
needs to be redirected to

[affiliate].[boxoffice].[www2].[mysite.com]/[boxoffice]/[what ever the string in
here]

----------

became

---------- ../ this needs to be redirected to

...//

----------

If you want do some generic redirect rule, then

server { server_name affiliate.www2.mysite.com;

location ~ ^(/[^/]+) { set $name $1; rewrite ^ http://affiliate.$name.www2.mysite.com$request_uri?; } }