rack-devel archive mirror (unofficial) https://groups.google.com/group/rack-devel
 help / color / mirror / Atom feed
* Middleware to dispatch request to multiple applications based on  request domain name
@ 2010-02-06 16:58 misza222
  2010-02-07 11:57 ` James Tucker
  0 siblings, 1 reply; 6+ messages in thread
From: misza222 @ 2010-02-06 16:58 UTC (permalink / raw)
  To: Rack Development

Hi,

Here is a problem I have.
There is an app which consists of multiple subapps. Requests needs to
be dispatched to the particular subapp based on the domain name.
I thought Rack::URLMap may be a solution but couldn't make it to work
so eventually I created my own rack middleware that allowed me to
achieve it. Here is how it looks like http://github.com/misza222/dispatch_by_domain
But am I reinventing a wheel here? Is there any way to achieve the
same thing with existing rack middleware?

Cheers,

Michal

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-02-08 21:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 16:58 Middleware to dispatch request to multiple applications based on request domain name misza222
2010-02-07 11:57 ` James Tucker
2010-02-07 22:36   ` misza222
2010-02-07 22:54     ` Daniel N
2010-02-08 10:29     ` James Tucker
2010-02-08 21:17       ` misza222

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).