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 *.htmCan'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
I see what you mean, I have no desire to have to register any of the urls ;)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).
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/>
I have managed to get mod_rewrite to work occasionally, but it can be a struggle ;)I'm not sure - I'd guess it'll have the whole URL somewhere in theIs this going to work? Will Cocoon 'receive' the whole URL, or just the bit picked up by the '*'?
headers, but possibly not where you want it. Besides, the solution above
isn't very future-proof IMHO.
You also said:
I think your best solution is going to be in the Apache httpd.conf - maybeWe really want to get Apache serving this content if possible, it is going to have less overhead and be faster, as I understand it.
Rewrite will do what you want. Can't figure out how to limit what is
passed on to Cocoon via JkMount though :-/
Effectively I guess you want rules that pass everything but images,[smacks forehead]
movies, audio, x-spaceprojects, harlem etc to mod_jk. Anyone else know how
to do that? ;-)
I mean something like:
JkMount /!(images|movies|audio)*
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]>