Welcome! Log In Create A New Profile

Advanced

Re: apache to nginx rewrite rule

December 29, 2010 03:02PM
On Wed, Dec 29, 2010 at 02:56:10PM -0500, Ilan Berkner wrote:

> that worked, thanks

You do not need "break".

location /youtube {
rewrite ^/youtube/(.*)$ http://wwww.youtube.com/$1;
}

This is enough.

> On Wed, Dec 29, 2010 at 12:15 PM, António P. P. Almeida <appa@perusio.net>wrote:
>
> > On 29 Dez 2010 17h04 WET, iberkner@gmail.com wrote:
> >
> > > Thanks, but no, I'm not confusing location with host name.
> > >
> > > I'm trying to redirect any requests on our domain as follows:
> > >
> > >
> > https://www.ourdomain.com/youtube/v/mydjFYoD4WS&hl=en_US&fs=1&rel=0&autoplay=1
> > >
> > > to:
> > >
> > > http://www.youtube.com/v/mydjFYoD4WS&hl=en_US&fs=1&rel=0&autoplay=1
> > >
> > > This is to solve a SSL warning issue. We're already doing it on
> > > another site using the .htaccess rule I provided.
> > >
> > > See: http://www.adammershon.com/display-youtube-videos-on-ssl-page/
> >
> > Try this:
> >
> > location /youtube {
> > rewrite ^/youtube/(.*)$ http://wwww.youtube.com/$1 break;
> > }
> >
> > --- appa
> >
> >
> > _______________________________________________
> > nginx mailing list
> > nginx@nginx.org
> > http://nginx.org/mailman/listinfo/nginx
> >

> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

apache to nginx rewrite rule

iberkner December 29, 2010 10:34AM

Re: apache to nginx rewrite rule

António P. P. Almeida December 29, 2010 10:46AM

Re: apache to nginx rewrite rule

iberkner December 29, 2010 12:08PM

Re: apache to nginx rewrite rule

António P. P. Almeida December 29, 2010 12:24PM

Re: apache to nginx rewrite rule

iberkner December 29, 2010 03:00PM

Re: apache to nginx rewrite rule

Igor Sysoev December 29, 2010 03:02PM

Re: apache to nginx rewrite rule

António P. P. Almeida December 29, 2010 03:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 182
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