You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Pedro Salazar <pe...@ptinovacao.pt> on 2001/06/06 17:12:17 UTC

Re: make ajp13 as the default worker [new question]

Rui M . Silva Seabra wrote:

> 
> Have you not read my email? DO NOT USE mod_jk.conf-auto
> Look into it, learn the flags you need to use, and change accordingly.
> 
> You do not need to change server.xml or web.xml for that. It's a problem
> with the generation of mod_jk.conf-auto.
> 
> On another note:
> 
>  you do not, I repeat... you do NOT ever need to restart apache because
> of shutting down or starting up tomcat.
> 
> that would only be needed if you insist on using mod_jk.conf-auto (which
> is evil) and constantly make changes to the servlets server
> configuration.
> 
> I am trying to get time to make a tomcat howto that's a little more
> explicit than the docs on the web page for begginners. I hope I have
> time to do it.
> 


Well, I didn't read any email yours, I just subscribed the list 
yesterday... But, now I have a question about use or not use the 
mod_jk.conf-auto...

- If I'm using a copy of a modified version of mod_jk.conf-auto (say 
mod_jk.conf-mycopy), and if I add a new context in server.xml, then I 
must restart tomcat, pick up the new context from the mod_jk.conf-auto 
with all his properties to mod_jk.conf-mycopy, change the entry ajp12 to 
ajp13, and then restart apache because the httpd.conf that apache gots 
when it started includes a older version of mod_jk.conf-mycopy. Is this 
the right procedure?

thanks,
psalazar




Re: make ajp13 as the default worker [new question]

Posted by "Rui M . Silva Seabra" <rm...@multicert.com>.
On Wed, Jun 06, 2001 at 04:12:17PM +0100, Pedro Salazar wrote:
> Rui M . Silva Seabra wrote:
> - If I'm using a copy of a modified version of mod_jk.conf-auto (say 
> mod_jk.conf-mycopy), and if I add a new context in server.xml, then I 
> must restart tomcat, pick up the new context from the mod_jk.conf-auto 
> with all his properties to mod_jk.conf-mycopy, change the entry ajp12 to 
> ajp13, and then restart apache because the httpd.conf that apache gots 
> when it started includes a older version of mod_jk.conf-mycopy. Is this 
> the right procedure?

Any changes to apache configuration will only be valid after a restart.

So yes, you will have to restart. However, you can restart your servlet engine without needing to restart apache, as long as you do not change configuration that will cause changes to apache's configuration.

As a rule of thumb, I include a file (say mod_jk.conf) which is in apache's conf dir:

LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /usr/local/opt/tomcat/conf/workers.properties

JkLogFile /usr/local/opt/apache/logs/mod_jk

JkLogLevel debug

Then, for each site that will need to access a worker, I only add:

        JkMount /cgi-bin/* worker

Easy as a pie. Only when you make changes to httpd.conf will you need to restart the httpd, and not, as the tomcat docs suggests because of using mod_jk.conf-auto (which IMHO is evil since it does not work well), when you restart tomcat.

You will only need to change the web site (in terms of tomcat) to add the single JkMount line :) So it's really not worth using mod_jk.conf-auto, with all the hazzards it may add due to bugs.

However, having to restart apache because of configuration changes, is an apache web server issue and not a tomcat servlet engine issue.

Hugs, rms

-- 
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?