List Info

Thread: Handler Redirections




Handler Redirections
user name
2006-10-06 18:37:31
Hello List,

I have a question concerning the usage of the redirection
handler in 
cherokee. I know that it works quite well with redirecting 
subdirectories to another - possible external - address
using the URL 
directive. However, I still seem to need a directory
configuration 
above including a document root and directory index.

As a matter of fact, I have a domain where I have several
subdomains 
for each project. Now from time to time, whenever a project
gets more 
attention, it might get its own domain. However, the domain
should just 
be redirected to the subdomain. I can archieve this using
the following:

Server domain123.de {
         DocumentRoot /var/www/domain123.de
         DirectoryIndex index.html
         Directory / {
                 Handler redir {
                         URL http://sub.domain456.de
                 }
         }
}

However, this configuration has a lot of unneeded lines in
it. Wouldn't 
it be more simple to have a single redirect configuration
like:

Server domain123.de {
         Handler redir {
         	URL http://sub.domain456.de
         }
}

With my current cherokee version this does not seem to work.

Additionally I didn't find any information about this in the
wiki. So 
if I've missed something, please let me know.

Greetings,

Lennart

_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
Handler Redirections
user name
2006-10-07 21:09:57
Lennart Droste wrote:

> Server domain123.de {
>         Handler redir {
>             URL http://sub.domain456.de
>         }
> }
>
> With my current cherokee version this does not seem to
work.
> Additionally I didn't find any information about this
in the
> wiki. So if I've missed something, please let me know.

  I would use either this:

==========
  Server example.com {
     Directory / {
    	Handler redir {
           Show Rewrite "^/(.*)$" "http://sub.domain.org/$1&q
uot;
	}
     }
  }
==========

  or this

==========
  Server example.com {
     Directory / {
    	Handler redir {
	   URL http://sub.domain.org/		
	}
     }
  }
==========

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
Handler Redirections
user name
2006-10-07 21:09:57
Lennart Droste wrote:

> Server domain123.de {
>         Handler redir {
>             URL http://sub.domain456.de
>         }
> }
>
> With my current cherokee version this does not seem to
work.
> Additionally I didn't find any information about this
in the
> wiki. So if I've missed something, please let me know.

  I would use either this:

==========
  Server example.com {
     Directory / {
    	Handler redir {
           Show Rewrite "^/(.*)$" "http://sub.domain.org/$1&q
uot;
	}
     }
  }
==========

  or this

==========
  Server example.com {
     Directory / {
    	Handler redir {
	   URL http://sub.domain.org/		
	}
     }
  }
==========

-- 
Greetings, alo.
http://www.alobbs.com
_______________________________________________
Cherokee mailing list
Cherokee0x50.org
http://www.0x50.org/cgi-bin/mailman/listinfo/cherokee
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )