site redirect

Eden Li eden at mojiti.com
Wed Dec 19 04:38:42 MSK 2007


server {
  listen 80;
  server_name mob.red91.com;
  rewrite /(.*) http://red91rails.mofuse.mobi/$1 redirect;
}

On 12/18/07, John Griffiths <lists at ruby-forum.com> wrote:
> Wonder if anyone's got any idea how to do this,
>
> I've got a mobile version of my website at...
>
> http://red91rails.mofuse.mobi/
>
> and I've setup a dns record for -> mob.red91.com
>
> what i now want to do is point any traffic going to mob.red91.com to the
> mofuse web address.
>
> could this be done in nginx or can i tweak it with a dns redirect?
>
> can dns do a redirect to a web address?
>
> any ideas greatful,
>
>
> John.
> --
> Posted via http://www.ruby-forum.com/.
>
>





More information about the nginx mailing list