Re: mod_jk integration

2003-02-19 Thread Bill Barker
For Apache 1.3.x, you need to move 'mod_rewrite' below 'mod_jk' in the
AddModule list.  Alternatively, the [PT] option may work (but I haven't
tried it).

Alexander Czernay [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi Lajos,

 thanks for your help. I read through your pages and it sounds to me like
 I have to use the mod_rewrite technique to accomplish my goal. But I'm
 afraid I don't know the rewrite mechanism enough to get it going.

 It would be great, if you could help me again with that.

 This is kind of a special case, as I set up Cocoon to serve two sites
 from the same directory, using different XSLTs for the different design.

 The structure, defined in my sitemap, is mainly like this:
 /cocoon - just the usual one
 /cocoon/k8 - this is bundling the two sites
 /cocoon/k8/alexander - this is the first site to be mapped to one domain
 /cocoon/k8/moritz - this is the second site to be mapped to the other
domain


 Maybe this is completly wrong, so if I should have done it another way,
 please tell me.

 Thanks for any help,

 Alexander

 Lajos wrote:
  Hi Alexander -
 
  There are several ways you can do this - see my Cocoon notes at
  http://www.galatea.com/flashguides/cocoon-tips-2.xml (or my book ;) ).
  Probably the best is simply to make the cocoon webapp your default
  context in server.xml:
 
  Context path= docBase=cocoon debug=0/
 
  Regards,
 
  Lajos
 
 
  Alexander Czernay wrote:
 
  I'm trying to integrate my servlet (Apache Cocoon 2.0.4), running
  inside Tomcat 4.0.4 into my Apache 1.36. This works perfectly well,
  but I'd like to get rid of the /cocoon/ part in the URL, so I can map
  the whole Cocoon based app directly to my domain.
 
  I tried some Alias commands and some MountJk commands, but that
  doesn't work, as it seems to me like Apache doesn't pass the whole
  path to Tomcat, thus Tomcat doesn't search inside its /cocoon/ path,
  but rather in its root path - that obviously doesn't work.
 
  Any hints?
 
  Alexander
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 


 --
 _
 Alexander Czernay
 IT-Consulting  Media Development

 fon +49-40-41096742
 fax +49-40-41096743
 icq 4773650

 [EMAIL PROTECTED]
 www.czernay.com
 _




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




Re: mod_jk integration

2003-02-18 Thread Lajos
Hi Alexander -

There are several ways you can do this - see my Cocoon notes at 
http://www.galatea.com/flashguides/cocoon-tips-2.xml (or my book ;) ). 
Probably the best is simply to make the cocoon webapp your default 
context in server.xml:

Context path= docBase=cocoon debug=0/

Regards,

Lajos


Alexander Czernay wrote:
I'm trying to integrate my servlet (Apache Cocoon 2.0.4), running inside 
Tomcat 4.0.4 into my Apache 1.36. This works perfectly well, but I'd 
like to get rid of the /cocoon/ part in the URL, so I can map the whole 
Cocoon based app directly to my domain.

I tried some Alias commands and some MountJk commands, but that doesn't 
work, as it seems to me like Apache doesn't pass the whole path to 
Tomcat, thus Tomcat doesn't search inside its /cocoon/ path, but rather 
in its root path - that obviously doesn't work.

Any hints?

Alexander



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




--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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




Re: mod_jk integration

2003-02-18 Thread Alexander Czernay
Hi Lajos,

thanks for your help. I read through your pages and it sounds to me like 
I have to use the mod_rewrite technique to accomplish my goal. But I'm 
afraid I don't know the rewrite mechanism enough to get it going.

It would be great, if you could help me again with that.

This is kind of a special case, as I set up Cocoon to serve two sites 
from the same directory, using different XSLTs for the different design.

The structure, defined in my sitemap, is mainly like this:
/cocoon	- just the usual one
/cocoon/k8 - this is bundling the two sites
/cocoon/k8/alexander - this is the first site to be mapped to one domain
/cocoon/k8/moritz - this is the second site to be mapped to the other domain


Maybe this is completly wrong, so if I should have done it another way, 
please tell me.

Thanks for any help,

Alexander

Lajos wrote:
Hi Alexander -

There are several ways you can do this - see my Cocoon notes at 
http://www.galatea.com/flashguides/cocoon-tips-2.xml (or my book ;) ). 
Probably the best is simply to make the cocoon webapp your default 
context in server.xml:

Context path= docBase=cocoon debug=0/

Regards,

Lajos


Alexander Czernay wrote:

I'm trying to integrate my servlet (Apache Cocoon 2.0.4), running 
inside Tomcat 4.0.4 into my Apache 1.36. This works perfectly well, 
but I'd like to get rid of the /cocoon/ part in the URL, so I can map 
the whole Cocoon based app directly to my domain.

I tried some Alias commands and some MountJk commands, but that 
doesn't work, as it seems to me like Apache doesn't pass the whole 
path to Tomcat, thus Tomcat doesn't search inside its /cocoon/ path, 
but rather in its root path - that obviously doesn't work.

Any hints?

Alexander



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







--
_
Alexander Czernay
IT-Consulting  Media Development

fon +49-40-41096742
fax +49-40-41096743
icq 4773650

[EMAIL PROTECTED]
www.czernay.com
_



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




Re: mod_jk integration

2003-02-18 Thread Lajos
Well, I do the same on my server. What I did was to have to 
VirtualHosts in Apache, each directing the appropriate Cocoon 
application to Tomcat. Then, in Tomcat, I point everything to the 
default context, which is Cocoon. In Cocoon's sitemap, I use the 
WildcardHostMatcher to direct the URLs for the appropriate host to the 
right sub-sitemaps.

I don't think you need mod_rewrite. Look at the WildcardHostMatcher.

If you have more questions, email me privately since we are straying 
off-topic here (and it'll spawn an endless thread of people admonishing 
the people talking about the people complaining about off-topic posts ;) )

Regards,

Lajos


Alexander Czernay wrote:
Hi Lajos,

thanks for your help. I read through your pages and it sounds to me like 
I have to use the mod_rewrite technique to accomplish my goal. But I'm 
afraid I don't know the rewrite mechanism enough to get it going.

It would be great, if you could help me again with that.

This is kind of a special case, as I set up Cocoon to serve two sites 
from the same directory, using different XSLTs for the different design.

The structure, defined in my sitemap, is mainly like this:
/cocoon- just the usual one
/cocoon/k8 - this is bundling the two sites
/cocoon/k8/alexander - this is the first site to be mapped to one domain
/cocoon/k8/moritz - this is the second site to be mapped to the other 
domain


Maybe this is completly wrong, so if I should have done it another way, 
please tell me.

Thanks for any help,

Alexander

Lajos wrote:

Hi Alexander -

There are several ways you can do this - see my Cocoon notes at 
http://www.galatea.com/flashguides/cocoon-tips-2.xml (or my book ;) ). 
Probably the best is simply to make the cocoon webapp your default 
context in server.xml:

Context path= docBase=cocoon debug=0/

Regards,

Lajos


Alexander Czernay wrote:

I'm trying to integrate my servlet (Apache Cocoon 2.0.4), running 
inside Tomcat 4.0.4 into my Apache 1.36. This works perfectly well, 
but I'd like to get rid of the /cocoon/ part in the URL, so I can map 
the whole Cocoon based app directly to my domain.

I tried some Alias commands and some MountJk commands, but that 
doesn't work, as it seems to me like Apache doesn't pass the whole 
path to Tomcat, thus Tomcat doesn't search inside its /cocoon/ path, 
but rather in its root path - that obviously doesn't work.

Any hints?

Alexander



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










--



   Lajos Moczar
  
Open Source Support, Consulting and Training
  
Cocoon Developer's Handbook
 (www.amazon.com/exec/obidos/tg/detail/-/0672322579)

   _  _
  / \ /
 /___\  /
/ \   /

 http://www.galatea.com -- powered by AzSSL


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