Re: mod_webapp or mod_jk?

2002-07-10 Thread leo leonid



On Tuesday, July 9, 2002, at 08:21  Uhr, Skip Carter wrote:




 I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 
 4.0.4b3): sometimes (say, 5% of requests) the communications
 between the two servers (the web-server was on a Solaris box, the 
 application-server on another Solaris box) went down.
 This problems disappeared when we used mod_jk.


   Considering that I recently switched over to mod_webapp from mod_jk 
 this is
 scary to hear
   (so far I have not noticed this problem with Apache 1.3.26, Tomcat 
 4.0.4b2
 on Linux).


With Linux a can reassure you. I experimented a lot with all the tomcat 
4.x.x
and several mod_webapp versions. I finally found a constellation which is
is very reliable, and where you can restart tomcat with no need to 
restart
apache-httpd as well. On a RH 6.2 I use
apache-httpd  1.2.26
tomcat 4.0.4 (final)
mod_wepapp 4.1.3 (from CVS)



 About the second question, you have some options, which are reported 
 in the 2.0.3 FAQ:
 1) Use mod-rewrite for an all-apache solution
 2) Set cocoon as the root context of Tomcat (and redicte every root 
 request to Tomcat, of course)

 After a long soul-searching... I chose the latter :)

   I am also doing #2, (with mod_webapp so the apache conf file has a
   WebAppDeploy cocoon   warpConnection /   for the virutal host).

   But I have one question that somebody may have a suggestion for.

   How do I support legacy CGI ?

   I am currently doing this with a sitemap entry to redirect to a 
 virtual
 Apache server
   that is specifically for the purpose of handling cgi:

map:match pattern=cgi-bin/*
map:redirect-to 
 uri=http://cgiserver.mydomain.com/cgi-bin/{1};
 /
/map:match


   This works, but is there a cleaner way ?


I don't know if it is 'cleaner', but as an alternative you can 
put/leave a
ScriptAlias /cgi-bin/ /path/to/cgi-bin/
inside your VirtualHost and you only pass requests like /xml/* to 
cocoon.
WebAppDeploy cocoon   warpConnection /xml

/Leo


 --
  Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
  Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
  1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
  Monterey, CA. 93940



-
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]




RE: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini

Yurix,

here's for my 0.2c:

I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
(say, 5% of requests) the communications
between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
This problems disappeared when we used mod_jk.

About the second question, you have some options, which are reported in the 2.0.3 FAQ:
1) Use mod-rewrite for an all-apache solution
2) Set cocoon as the root context of Tomcat (and redicte every root request to Tomcat, 
of course)

After a long soul-searching... I chose the latter :)

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:04 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp or mod_jk?


 Hi all!

 Which one would you recommend for a mid-size website with cocoon?
 Which one is more stable? Can I mount cocoon's context to website's '/'
 from within apache (using mod_jk)?

 Thanx for any reply.

 Yury.



 -
 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]



-
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]




Re: mod_webapp or mod_jk?

2002-07-09 Thread yuryx

Hi Luca!

Thanx for your reply, but one more qustion :)

I'm just use mod_rewrite, but after redirect operation i get the 
cocoon (instead the my-for-cocoon-prefix) word in the URL
(with redirect to relative path like ../sample)
How to solve this problem?

Thanx.
Yury.


Luca Morandini wrote:

Yurix,

here's for my 0.2c:

I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): sometimes 
(say, 5% of requests) the communications
between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
This problems disappeared when we used mod_jk.

About the second question, you have some options, which are reported in the 2.0.3 FAQ:
1) Use mod-rewrite for an all-apache solution
2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)

After a long soul-searching... I chose the latter :)

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


  

-Original Message-
From: yuryx [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 1:04 PM
To: [EMAIL PROTECTED]
Subject: mod_webapp or mod_jk?


Hi all!

Which one would you recommend for a mid-size website with cocoon?
Which one is more stable? Can I mount cocoon's context to website's '/'
from within apache (using mod_jk)?

Thanx for any reply.

Yury.



-
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]





-
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]

  





-
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]




RE: mod_webapp or mod_jk?

2002-07-09 Thread Luca Morandini

snip
 I'm just use mod_rewrite, but after redirect operation i get the
 cocoon (instead the my-for-cocoon-prefix) word in the URL
 (with redirect to relative path like ../sample)
 How to solve this problem?
/snip

I'm afraid you can't.

Best regards,

-
   Luca Morandini
   GIS Consultant
  [EMAIL PROTECTED]
http://utenti.tripod.it/lmorandini/index.html
-


 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 2:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: mod_webapp or mod_jk?


 Hi Luca!

 Thanx for your reply, but one more qustion :)

 I'm just use mod_rewrite, but after redirect operation i get the
 cocoon (instead the my-for-cocoon-prefix) word in the URL
 (with redirect to relative path like ../sample)
 How to solve this problem?

 Thanx.
 Yury.


 Luca Morandini wrote:

 Yurix,
 
 here's for my 0.2c:
 
 I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
sometimes (say, 5% of requests) the communications
 between the two servers (the web-server was on a Solaris box, the 
application-server on another Solaris box) went down.
 This problems disappeared when we used mod_jk.
 
 About the second question, you have some options, which are reported in the 2.0.3 
FAQ:
 1) Use mod-rewrite for an all-apache solution
 2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)
 
 After a long soul-searching... I chose the latter :)
 
 Best regards,
 
 -
Luca Morandini
GIS Consultant
   [EMAIL PROTECTED]
 http://utenti.tripod.it/lmorandini/index.html
 -
 
 
  
 
 -Original Message-
 From: yuryx [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 09, 2002 1:04 PM
 To: [EMAIL PROTECTED]
 Subject: mod_webapp or mod_jk?
 
 
 Hi all!
 
 Which one would you recommend for a mid-size website with cocoon?
 Which one is more stable? Can I mount cocoon's context to website's '/'
 from within apache (using mod_jk)?
 
 Thanx for any reply.
 
 Yury.
 
 
 
 -
 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]
 

 
 
 
 -
 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]
 
  
 




 -
 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]
 

-
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]




Re: mod_webapp or mod_jk?

2002-07-09 Thread Skip Carter



 
 I've found a nasty problem with mod_webapp (Apache 1.3.24, Tomcat 4.0.4b3): 
sometimes (say, 5% of requests) the communications
 between the two servers (the web-server was on a Solaris box, the application-server 
on another Solaris box) went down.
 This problems disappeared when we used mod_jk.


  Considering that I recently switched over to mod_webapp from mod_jk this is 
scary to hear
  (so far I have not noticed this problem with Apache 1.3.26, Tomcat 4.0.4b2 
on Linux).

 
 About the second question, you have some options, which are reported in the 2.0.3 
FAQ:
 1) Use mod-rewrite for an all-apache solution
 2) Set cocoon as the root context of Tomcat (and redicte every root request to 
Tomcat, of course)
 
 After a long soul-searching... I chose the latter :)

  I am also doing #2, (with mod_webapp so the apache conf file has a
  WebAppDeploy cocoon   warpConnection /   for the virutal host).

  But I have one question that somebody may have a suggestion for.

  How do I support legacy CGI ?

  I am currently doing this with a sitemap entry to redirect to a virtual 
Apache server
  that is specifically for the purpose of handling cgi:

   map:match pattern=cgi-bin/*
   map:redirect-to uri=http://cgiserver.mydomain.com/cgi-bin/{1};
/
   /map:match


  This works, but is there a cleaner way ?


-- 
 Dr. Everett (Skip) Carter  Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Scientific Inc.INTERNET: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314WWW: http://www.taygeta.com
 Monterey, CA. 93940












-
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]