Welcome! Log In Create A New Profile

Advanced

Re: rewrite rule problem

Oleksandr V. Typlyns'kyi
October 23, 2010 03:40AM
Today Oct 23, 2010 at 07:51 Todd HG wrote:

> I am trying to write a rewrite rule to forward:
> http://images.hollywoodgrind.com:9000/images/2008/7/vanessa-hudgens-and-zac-efron-vacation-part-2-1.jpg
> to the new URL:
> http://www.hollywoodgrind.com/images/2008/7/vanessa-hudgens-and-zac-efron-vacation-part-2-1.jpg
> In the /images directory location.
>
> I need to forward any image traffic that comes to
> images.hollywoodgrind.com:9000 to www.hollywoodgrind.com.

server {
listen 209.62.71.66:9000;
server_name images.hollywoodgrind.com;
...
location /images {
rewrite ^ http://www.hollywoodgrind.com$request_uri? permanent;
}
...
}

--
WNGS-RIPE

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

rewrite rule problem

Todd HG October 23, 2010 01:54AM

Re: rewrite rule problem

Oleksandr V. Typlyns'kyi October 23, 2010 03:40AM

Re: rewrite rule problem

Todd HG October 23, 2010 03:56PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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