What is the usecase of rewriting the hostname? ... Having multiple
subdomains mapped to the same IP address and want to discriminate
them?
Br's,
Marius
On Jul 26, 1:22 am, JanWillem Tulp janwillem.t...@gmail.com wrote:
Hi all,
most examples I have seen about Lift URL rewriting are about the
Id say this is a fairly common idiom with multi-tenant systems...
Cheers, Tim
On Jul 26, 8:30 am, marius d. marius.dan...@gmail.com wrote:
What is the usecase of rewriting the hostname? ... Having multiple
subdomains mapped to the same IP address and want to discriminate
them?
Br's,
Yeah, Marius, you're right.
I was just wondering how they've implemented this feature, for example
at www.basecamphq.com. If you signup, you get a URL that starts with
your account name, something like: myacount.basecamphq.com.
How is that done? Or better, how to do something similar in Lift?
Well RewriteRequest/Response are currently defined as:
case class RewriteRequest(path: ParsePath, requestType: RequestType,
httpRequest: HttpServletRequest)
case class RewriteResponse(path: ParsePath, params: Map[String,
String], stopRewriting: Boolean)
so having HttpServketRequest in
Hi Marius,
thanks for your reply, and the better understanding of URL rewrites.
For now I'll stick to rewriting the path.
Regards,
JanWillem
On Jul 26, 1:49 pm, marius d. marius.dan...@gmail.com wrote:
Well RewriteRequest/Response are currently defined as:
case class RewriteRequest(path:
Seems like you have an article for all of my questions, Timothy ;)
Thanks!!
On Jul 26, 2:37 pm, Timothy Perrett timo...@getintheloop.eu wrote:
JanWillem,
You might find this article I wrote on URL rewriting helpful:http://is.gd/wq4K
Cheers, Tim
On 26/07/2009 13:10, JanWillem Tulp
haha your most welcome - glad I can help... I've written a bunch of
articles about lift, all of which you can find here:
http://blog.getintheloop.eu/tags/lift
Cheers, Tim
On Jul 26, 1:50 pm, JanWillem Tulp janwillem.t...@gmail.com wrote:
Seems like you have an article for all of my questions,
That probably won't work as RewriteRequest is already a case class
which means that unapply is defined. AFAIK building an extractor that
yields different types is not possible . For instance we can not have:
def unapply(r: RewriteRequest): Option[(ParseHost, ParsePath,
RequestType,
Which is why I referenced QNode -- it is a 3-LOC object for the sole purpose of
supplying an extractor that couldn't go into Elem because of the problem you
stated. :)
-
marius d.marius.dan...@gmail.com wrote:
That probably won't work as RewriteRequest is