Okay, cool. Figured it couldn't hurt to ask ;-)

-Ross

On Feb 16, 2010, at 11:48 AM, Timothy Perrett wrote:

> Seeing as I don't know what the solution is yet, no. Lol. I'd rather just 
> have a 15 min conversation than waste time with a million emails ( I'm very 
> busy right now )
> 
> Will get jeppe to post working solution when one exists...
> 
> Cheers, Tim
> 
> Sent from my iPhone
> 
> On 16 Feb 2010, at 15:15, Ross Mellgren <dri...@gmail.com> wrote:
> 
>> Any chance you could have this discussion on-list to increase the general 
>> knowledge about it?
>> 
>> -Ross
>> 
>> On Feb 16, 2010, at 8:50 AM, Timothy Perrett wrote:
>> 
>>> Contact me privatly with your IM adress and lets chat about it Jeppe - I'm 
>>> doing something similar with helicon (windows proxy) and it's working fine.
>>> 
>>> I'm traveling now but will be about later
>>> 
>>> Cheers, Tim
>>> 
>>> Sent from my iPhone
>>> 
>>> On 16 Feb 2010, at 10:01, Jeppe Nejsum Madsen <je...@ingolfs.dk> wrote:
>>> 
>>>> Hi,
>>>> 
>>>> I want to setup a single nginx in front of two independent lift apps
>>>> (see previous thread) but haven't succeeded.
>>>> What I wan't is this:
>>>> 
>>>> External url foo.com/index.html goes to jetty: 
>>>> localhost:8080/foo/index.html
>>>> External url bar.com/index.html goes to jetty: 
>>>> localhost:8080/bar/index.html
>>>> 
>>>> So, I'm trying to see if I can get the basic jetty setup going before
>>>> throwing nginx in the mix.
>>>> 
>>>> Here are my findings:
>>>> 
>>>> With LiftRules.calculateContextPath = () => Empty:
>>>> 
>>>> Deploying lift app foo in context foo works fine: ie
>>>> localhost:8080/foo/index.html gives me the app and the app works with
>>>> the localhost:8080/foo prefix
>>>> 
>>>> Not surprisingly, setting  LiftRules.calculateContextPath = () =>
>>>> Full("/foo") gives same result as above.
>>>> 
>>>> Ok, Fine so far. But when nginx is added, a redirect to "/index.html"
>>>> should not go to "/foo/index.html" but to "/index.html"
>>>> 
>>>> So I tried:
>>>> 
>>>> LiftRules.calculateContextPath = () => Full("/")
>>>> 
>>>> But now, hitting localhost:8080/foo/index.html (simulating a request
>>>> from nginx), I just get my raw index.html template without any Lift
>>>> processing as if Lift has ignored the request.
>>>> 
>>>> Am I misunderstanding the purpose of calculateContextPath?
>>>> 
>>>> How can I make lift run in a non-root context but at the same time,
>>>> when generating URLs, not prepend the context path?
>>>> 
>>>> /Jeppe
>>>> 
>>>> -- 
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "Lift" group.
>>>> To post to this group, send email to lift...@googlegroups.com.
>>>> To unsubscribe from this group, send email to 
>>>> liftweb+unsubscr...@googlegroups.com.
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/liftweb?hl=en.
>>>> 
>>>> 
>>> 
>>> -- 
>>> You received this message because you are subscribed to the Google Groups 
>>> "Lift" group.
>>> To post to this group, send email to lift...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> liftweb+unsubscr...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/liftweb?hl=en.
>>> 
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Lift" group.
>> To post to this group, send email to lift...@googlegroups.com.
>> To unsubscribe from this group, send email to 
>> liftweb+unsubscr...@googlegroups.com.
>> For more options, visit this group at 
>> http://groups.google.com/group/liftweb?hl=en.
>> 
>> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Lift" group.
> To post to this group, send email to lift...@googlegroups.com.
> To unsubscribe from this group, send email to 
> liftweb+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/liftweb?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to lift...@googlegroups.com.
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.

Reply via email to