Welcome! Log In Create A New Profile

Advanced

Re: vburshteyn

July 09, 2009 03:58PM
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?;
}
}


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

vburshteyn

vburshteyn July 08, 2009 09:18AM

Re: vburshteyn

Igor Sysoev July 09, 2009 10:31AM

Re: vburshteyn

vburshteyn July 09, 2009 03:33PM

Re: vburshteyn

Igor Sysoev July 09, 2009 03:58PM

Re: vburshteyn

vburshteyn July 10, 2009 11:56AM

Re: vburshteyn

Igor Sysoev July 10, 2009 12:01PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready