apache to nginx rewrite rule
Ilan Berkner
iberkner at gmail.com
Wed Dec 29 22:56:10 MSK 2010
that worked, thanks
On Wed, Dec 29, 2010 at 12:15 PM, António P. P. Almeida <appa at perusio.net>wrote:
> On 29 Dez 2010 17h04 WET, iberkner at 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101229/2b03f817/attachment.html>
More information about the nginx
mailing list