Hello Dean, On 12/02/2011, at 01:31, Dean Matzkov wrote:
> I'd like to redirect requests to other internal vservers so that I can > avoid the use of a reverse http proxy (since everything would be done > on the same Cherokee instance). However, it doesn't seem like it's > possible, according to Cherokee's documentation. No, I'm afraid it is not possible with the current release. > I believe this would be useful, so here's a use-case for it: > > Imagine the following scenario, where there are two domain names: > > http://internal.org > http://public.net > > The first would only be used internally in a LAN, and the second would > be a global domain name. > > The internal domain would already be setup to have a variety of > subdomains/sites (eg, "somesite.internal.org", "git.internal.org", > etc). But since "internal.org" is only available in the LAN, it can't > be accessed by the outside world. > > That's where "public.net" comes in. > > However, public.net doesn't support subdomain wildcards (if it did, > then listening as both "*.internal.org" and "*.public.net" would solve > this problem). So instead, this could be worked-around by setting > Cherokee to redirect to other internal vservers, using a (rough) > ruleset such as: > > http://public.net/$1/$2 -> http://$1.internal.org/$2 > > Which would result in requests being handled like this: > > http://public.net/somesite -> http://somesite.internal.org > http://public.net/git -> http://git.internal.org > http://public.net/git/someproject -> http://git.internal.org/someproject I see. It isn't certainly of one of the most common use-cases, but it makes good sense. If you wanted to implement something similar with the current version (without configuring a reverse proxy), you'd have to duplicate a few rules. For instance, git.internal.org (fastcgi, source X) and public.net/git (fastcgi, same source X). It'd work, although the configuration maintainability wouldn't be even close. Could you please log a 'Request of Enhancement' for this at http://bugs.cherokee-project.com? I think this sort of redirections ought to be worked out on the upcoming releases. Cheers! -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
