On Tuesday, Dec 3, 2002, at 17:43 Europe/London, Andrew Savory wrote:

On Tue, 3 Dec 2002, Jeremy Quinn wrote:

Is 'JK2' the best one to be using now?
I am a bit confused between mod_webapp (warp) and JK[n] TBH.
I never got warp working, so I've always used Jk myself.

Sure you'll run into troubles if there are html files in the static
directories, or you rename it to *.htm
Can't change the urls ;)
And besides, we're geeks, so an elegant solution that doesn't require
modifying existing content would be desirable too ;-)

I concur ;)

As I remember, mapping '/' to mod_webapp stopped Apache from serving
ANYTHING.
True.

But as you imply in your sample above, this is not the case with JK2?
The samples above don't map '/' to mod_webapp, they only map selected
filetypes.

OK, which I can do for binary assets, but not for hypertext

So I would be able to map a long list of folders to JK2 and have
everything else automatically handled by Apache?
Sure, but we probably should try and achieve the opposite: I assume the
number of Cocoon resources will grow, whilst the "legacy" stuff will
remain constant (or at least constantly in the same place).
I see what you mean, I have no desire to have to register any of the urls ;)
It is difficult to tell which will change more, the Apache served or Cocoon served URI space. The Cocoon material represents the core of the organisation, the static material represents projects by out-side collaborators, and this is ongoing ...


JkMount / worker2
JkMount /index worker2
JkMount /index.* worker2
<snip/>

Is this going to work?

Will Cocoon 'receive' the whole URL, or just the bit picked up by the
'*'?
I'm not sure - I'd guess it'll have the whole URL somewhere in the
headers, but possibly not where you want it. Besides, the solution above
isn't very future-proof IMHO.

You also said:

We really want to get Apache serving this content if possible, it is
going to have less overhead and be faster, as I understand it.
I think your best solution is going to be in the Apache httpd.conf - maybe
Rewrite will do what you want. Can't figure out how to limit what is
passed on to Cocoon via JkMount though :-/

I have managed to get mod_rewrite to work occasionally, but it can be a struggle ;)

Effectively I guess you want rules that pass everything but images,
movies, audio, x-spaceprojects, harlem etc to mod_jk. Anyone else know how
to do that? ;-)

I mean something like:

JkMount /!(images|movies|audio)*
[smacks forehead]

Thank-you, of course.

looks like one approach could be this .....

1) keep static hypertext to be served by Apache in /static/ (or whatever), providing a redirection for important legacy URLs from the top level Cocoon sitemap. Each of those static projects should ideally be using relative addressing internally.

ie.
<!-- last entry in sitemap -->
<map:match pattern="**.html">
<map:redirect-to src="/static/{1}.html"/>
</map:match>

2) in httpd.conf, set up mappings for the suffixes *.gif,*.jpg,*.mov etc.

??? -- is this necessary?

3) in httpd.conf, set up a catch-the-rest mapping to JK

JkMount /!(images|movies|audio|static)*


Making headway I think, many thanks for your help.

regards Jeremy


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to