3 messages in ru.sysoev.nginxRe: Redirect?
FromSent OnAttachments
Ezra ZygmuntowiczOct 24, 2006 5:59 pm 
JonathanOct 24, 2006 6:04 pm 
Ezra ZygmuntowiczOct 24, 2006 6:13 pm 
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: Redirect?Actions...
From:Ezra Zygmuntowicz (ezmo@public.gmane.org)
Date:Oct 24, 2006 6:13:32 pm
List:ru.sysoev.nginx

On Oct 24, 2006, at 6:04 PM, Jonathan wrote:

On Oct 24, 2006, at 8:59 PM, Ezra Zygmuntowicz wrote:

Hi there-

What is the easiest way to setup a certain domain to do a permanent redirect in the config file? So if a request comes in to:

www.example.co.uk

and I want it to redirect to

www.example.com

i do this

-----------------------------

server { listen 80; server_name findmeon.net www.findmeon.net ; rewrite ^.*$ http://findmeon.com; }

// Jonathan Vanasco

Works fine. Thanks Jonathan!

Cheers-