35 messages in ru.sysoev.nginxRe: Re[2]: rewrite help again please :)
FromSent OnAttachments
Michael ShadleMay 6, 2009 2:36 pm 
ResicowMay 6, 2009 2:54 pm 
Nuno MagalhãesMay 6, 2009 2:54 pm 
Cliff WellsMay 6, 2009 2:59 pm 
Nuno MagalhãesMay 6, 2009 3:09 pm 
AMP AdminMay 6, 2009 3:17 pm 
Resi CowMay 6, 2009 3:20 pm 
Nuno MagalhãesMay 6, 2009 3:25 pm 
Resi CowMay 6, 2009 3:30 pm 
Michael ShadleMay 6, 2009 3:35 pm 
Kevin WorthingtonMay 6, 2009 4:10 pm 
Kevin WorthingtonMay 6, 2009 4:17 pm 
Darrin ChandlerMay 6, 2009 4:24 pm 
Jim OhlsteinMay 6, 2009 4:32 pm 
Cliff WellsMay 6, 2009 4:45 pm 
Resi CowMay 6, 2009 5:04 pm 
Jim OhlsteinMay 6, 2009 5:14 pm 
Cliff WellsMay 6, 2009 5:14 pm 
Resi CowMay 6, 2009 5:19 pm 
郭振立May 6, 2009 8:08 pm 
张立冰May 6, 2009 9:41 pm 
Delta YehMay 6, 2009 10:29 pm 
Matt LewandowskyMay 7, 2009 2:06 am 
TrigunMay 7, 2009 8:15 pm 
Hendry LeeMay 12, 2009 8:18 am 
AMP AdminMay 13, 2009 9:12 pm 
AMP AdminMay 13, 2009 9:18 pm 
Igor SysoevMay 13, 2009 10:08 pm 
Igor SysoevMay 13, 2009 10:13 pm 
Claude BingMay 14, 2009 7:23 am 
Denis F. LatypoffMay 14, 2009 7:38 am 
Igor SysoevMay 14, 2009 7:55 am 
Denis F. LatypoffMay 14, 2009 8:37 am 
Claude BingMay 14, 2009 9:12 am 
Claude BingMay 14, 2009 9:39 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Re[2]: rewrite help again please :)Actions...
From:Claude Bing (tehb@gmail.com)
Date:May 14, 2009 9:12:27 am
List:ru.sysoev.nginx

Thank you very much, will try to get this working now.

2009/5/14 Denis F. Latypoff <den@gostats.ru>

Hello Igor,

Thursday, May 14, 2009, 9:56:19 PM, you wrote:

On Thu, May 14, 2009 at 09:38:49PM +0700, Denis F. Latypoff wrote:

Hello Claude,

Thursday, May 14, 2009, 9:23:55 PM, you wrote:

Hello! I have a question.

I'm trying to set up Nginx to forward my old domain to my new domain. waterfortheoppressed.com => wfto.cc. But I not only need it to forward it, I need the persons browser address to change to wfto.cc. I'll provide the working Apache example here:

RewriteEngine On RewriteCond %{HTTP_HOST} ^(waterfortheoppressed.com) [NC] RewriteRule ^(.*)$ http://www.wfto.cc$1 [R=301,L]

RewriteCond %{HTTP_HOST} ^(www.waterfortheoppressed.com) [NC] RewriteRule ^(.*)$ http://www.wfto.cc$1 [R=301,L]

Thanks for any help you may have.

server { listen 80; server_name www.waterfortheoppressed.com waterfortheoppressed.com; # staff }

server { listen 80; server_name _;

location / { rewrite ^ http://www.wfto.cc$request_uri? permanent; } }

Vice versa:

server { listen 80; server_name www.waterfortheoppressed.com waterfortheoppressed.com;

rewrite ^ http://www.wfto.cc$request_uri? permanent; }

server { listen 80; server_name www.wfto.cc;

# staff }

That was additional homework for Claude :)

Vince Lombardi<http://www.brainyquote.com/quotes/authors/v/vince_lombardi.html> - "We didn't lose the game; we just ran out of time."