Redirect?

Ezra Zygmuntowicz ezmobius at gmail.com
Wed Oct 25 05:13:55 MSD 2006


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-

-- Ezra Zygmuntowicz 
-- Lead Rails Evangelist
-- ez at engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)







More information about the nginx mailing list