apache to nginx rewrite rule

Ilan Berkner iberkner at gmail.com
Wed Dec 29 18:30:00 MSK 2010


Looking to do something like this:

RewriteRule ^youtube/(.*)$ http://www.youtube.com/$1 [L]

This the configuration I'm thinking of?

location /youtube/
{
  rewrite ^(.*)$ http://www.youtube.com$1
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20101229/cc12e631/attachment.html>


More information about the nginx mailing list