I've been digging through some code and, at least to me, it seems like
this is not possible, since the same contextPath string is used both
to parse incoming requests and create outgoing responses in
updateWithContextPath.
So how do people deploy multiple lift apps for several domains on the
same server?
One thing (unrelated) looked odd:
Compare
case class PermRedirectResponse(uri: String, request: Req, cookies:
HTTPCookie*) extends LiftResponse {
def toResponse = InMemoryResponse(Array(), List("Location" ->
request.updateWithContextPath(uri)), cookies.toList, 301)
}
with
case class RedirectResponse(uri: String, cookies: HTTPCookie*) extends
LiftResponse {
// The Location URI is not resolved here, instead it is resolved
with context path prior of sending the actual response
def toResponse = InMemoryResponse(Array(0), List("Location" -> uri),
cookies toList, 302)
}
Note that 301 calls updateWithContextPath on the uri. Is this intentional?
/Jeppe
--
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.