Do not understand tomcat-apache autoconfiguration
Hi ! I've set up tomcat 1.4.1 and apache 1.3 to work together via autoconfiguration (generating a mod_jk.conf file). Here is the beginning of my server.xml file : " Server port="8005" shutdown="SHUTDOWN" debug="0"> " The mod_jk.conf generated is : " ## Auto generated on Wed Mar 19 17:23:51 CET 2003## LoadModule jk_module /etc/httpd/modules/mod_jk.so JkWorkersFile "/var/tomcat4/conf/jk/workers.properties" JkLogFile "/var/log/httpd/mod_jk.log" JkLogLevel debug " I do not want virtualhosts on my apache server, only directories. The problem is that there is no , Alias nor JkMount directive being generated and I have to set them up myself in the httpd.conf. Is this supposed to be so ? (If it is the case, what is the interest of auconfiguration : the mod_jk.conf contains exactly the same directives as in my server.xml file!!) Is there any solution to make Tomcat "virtualhosts" appears as directories in the httpd.conf of apache ? Thanks. Vincent. signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
Well, thanks, but I've already read this. It is not really explaining WHERE are supposed to be those "Listeners" that turn tomcat ApacheConfig on. When you read the doc, it seems that you're supposed to put one listener inside the tag and another one inside each tag (remember I do not want to use Virtualhosting). It's not clear whether you're supposed to use append="true" or not. In any cases, it does not generate what I want (and there also seems to be some bugs in here : restarting tomcat twice does not give the same mod_jk.conf). I've also tried to put them in many places whithout success. However, I recently found a mod_jk.conf shipped with a RedHat RPM and it seems to have been auto-generated as it contains the following lines : # # The following line makes apache aware of the location of the /examples context # Alias /examples /var/tomcat4/webapps/examples Options Indexes FollowSymLinks JkMount /examples/servlet/* ajp13 JkMount /examples/*.jsp ajp13 AllowOverride None deny from all This group of directives is exactly what I need but I don't know how to tell tomcat to generate them automatically. I'm almost forced to make a perl script to do something like "For each context you're managing, generate an Alias, a Directory and a JkMount for Apache" (using perl to manage a java application server... a bit strange isn't it ? :-) On Thu, 2003-03-20 at 10:04, Bill Barker wrote: > If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in > directive to the 4.x auto-config. > > In the mean-time go back and read > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach > eConfig. > > "Vincent Panel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks But it generates directives and inside, there's only JkMount's, no , no Alias, right ? What I really need (and I'm pretty sure I'm not the only one) is something like this (for each of my contexts) : > ># > ># The following line makes apache aware of the location of the /examples > >context > ># > >Alias /examples /var/tomcat4/webapps/examples > > > > Options Indexes FollowSymLinks > > > >JkMount /examples/servlet/* ajp13 > >JkMount /examples/*.jsp ajp13 > > > > AllowOverride None > > deny from all > > On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: > > Close. One inside the tag and one inside each tag that you > want autogenerated. > > Here's mine... > > > modJk="mod_jk.dll" > jkDebug="info" /> > ... > ... > ... > > append="true" > forwardAll="false" /> > ... > ... > ... > > ... > ... > ... > > > Jake > > At 02:09 PM 3/20/2003 +0100, you wrote: > >Well, thanks, but I've already read this. It is not really explaining > >WHERE are supposed to be those "Listeners" that turn tomcat ApacheConfig > >on. > > > >When you read the doc, it seems that you're supposed to put one listener > >inside the tag and another one inside each tag > >(remember I do not want to use Virtualhosting). It's not clear whether > >you're supposed to use append="true" or not. In any cases, it does not > >generate what I want (and there also seems to be some bugs in here : > >restarting tomcat twice does not give the same mod_jk.conf). I've also > >tried to put them in many places whithout success. > > > >However, I recently found a mod_jk.conf shipped with a RedHat RPM and it > >seems to have been auto-generated as it contains the following lines : > > > ># > ># The following line makes apache aware of the location of the /examples > >context > ># > >Alias /examples /var/tomcat4/webapps/examples > > > > Options Indexes FollowSymLinks > > > >JkMount /examples/servlet/* ajp13 > >JkMount /examples/*.jsp ajp13 > > > > AllowOverride None > > deny from all > > > > > > > >This group of directives is exactly what I need but I don't know how to > >tell tomcat to generate them automatically. I'm almost forced to make a > >perl script to do something like "For each context you're managing, > >generate an Alias, a Directory and a JkMount for Apache" (using perl to > >manage a java application server... a bit strange isn't it ? :-) > > > > > >On Thu, 2003-03-20 at 10:04, Bill Barker wrote: > > > If it wasn't deprecated, I'd probably go back and add a 3.3-style all-in > > > directive to the 4.x auto-config. > > > > > > In the mean-time go back and read > > > > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/jk.html#Using%20Apach > > > eConfig. > > > > > > "Vincent Panel" <[EMAIL PROTECTED]> wrote in message > > > news:[EMAIL PROTECTED] > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > signature.asc Description: This is a digitally signed message part
Re: Do not understand tomcat-apache autoconfiguration
OK, thanks. It still seems impossible to avoid this "virtualhosting" feature if you do not want it. Moreover, after setting exacly the same parameters than (both of) you, these three lines do not appear in my mod_jk.conf : JkWorkersFile "/usr/local/jakarta-tomcat-4.0.4/conf/jk/workers.properties" JkLogFile "/usr/local/jakarta-tomcat-4.0.4/logs/mod_jk.log" JkLogLevel emerg But that's OK, I'll wait for another version adding a bit more flexibility. Meanwhile, I'll play it manually. Thank you all. Vincent. On Thu, 2003-03-20 at 16:12, John Turner wrote: > > Here's an example of exactly what it creates: > > http://www.johnturner.com/howto/mod_jk_conf.html > > John > > On 20 Mar 2003 16:06:41 +0100, Vincent Panel <[EMAIL PROTECTED]> wrote: > > > OK, thanks > > > > But it generates directives and inside, there's only > > JkMount's, no , no Alias, right ? > > > > What I really need (and I'm pretty sure I'm not the only one) is > > something like this (for each of my contexts) : > > > >> ># > >> ># The following line makes apache aware of the location of the > >> /examples > >> >context > >> ># > >> >Alias /examples /var/tomcat4/webapps/examples > >> > > >> > Options Indexes FollowSymLinks > >> > > >> >JkMount /examples/servlet/* ajp13 > >> >JkMount /examples/*.jsp ajp13 > >> > > >> > AllowOverride None > >> > deny from all > >> > > > > > > > > > > > On Thu, 2003-03-20 at 15:56, Jacob Kjome wrote: > >> > >> Close. One inside the tag and one inside each tag that > >> you want autogenerated. > >> > >> Here's mine... > >> > >> > >> > >> modJk="mod_jk.dll" > >> jkDebug="info" /> > >> ... > >> ... > >> ... > >> > >> > >> append="true" > >> forwardAll="false" /> > >> ... > >> ... > >> ... > >> > >> ... > >> ... > >> ... > >> > >> > >> Jake > >> > >> At 02:09 PM 3/20/2003 +0100, you wrote: > >> >Well, thanks, but I've already read this. It is not really explaining > >> >WHERE are supposed to be those "Listeners" that turn tomcat > >> ApacheConfig > >> >on. > >> > > >> >When you read the doc, it seems that you're supposed to put one > >> listener > >> >inside the tag and another one inside each tag > >> >(remember I do not want to use Virtualhosting). It's not clear whether > >> >you're supposed to use append="true" or not. In any cases, it does not > >> >generate what I want (and there also seems to be some bugs in here : > >> >restarting tomcat twice does not give the same mod_jk.conf). I've also > >> >tried to put them in many places whithout success. > >> > > >> >However, I recently found a mod_jk.conf shipped with a RedHat RPM and > >> it > >> >seems to have been auto-generated as it contains the following lines : > >> > > >> ># > >> ># The following line makes apache aware of the location of the > >> /examples > >> >context > >> ># > >> >Alias /examples /var/tomcat4/webapps/examples > >> > > >> > Options Indexes FollowSymLinks > >> > > >> >JkMount /examples/servlet/* ajp13 > >> >JkMount /examples/*.jsp ajp13 > >> > > >> > AllowOverride None > >> > deny from all > >> > > >> > > >> > > >> >This group of directives is exactly what I need but I don't know how to > >> >tell tomcat to generate them automatically. I'm almost forced to make > >> a > >> >perl script to do something like "For each context you're managing, > >> >generate an Alias, a Directory and a JkMount for Apache" (using perl to > >> >manage a java application server... a bit strange isn't it ? :-) > >> > > >> > > >> >On Thu, 2003-03-20 at 10:04, Bill Barker wrote: > >> > > If it wasn't deprecated, I'd probably go back and add a 3.3-style > >> all-in > >> > > directive to the 4.x auto-config. > >> > > > >> > > In the mean-time go back and read > >> > > > http://jakarta.apache.org/tomcat/tomcat-4.1- > >> doc/config/jk.html#Using%20Apach > >> > > eConfig. > >> > > > >> > > "Vincent Panel" <[EMAIL PROTECTED]> wrote in message > >> > > news:[EMAIL PROTECTED] > >> > > > >> > > > >> > > > >> > > > >> > > - > >> > >> > >> > > To unsubscribe, e-mail: [EMAIL PROTECTED] > >> > > For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > >> > > >> > > >> > > > > > > > > > -- > Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > signature.asc Description: This is a digitally signed message part
Re: mod_jk installation
Where did you get your mod_jk ? According to what you say, you should download the following version : http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.1/bin/linux/i386/mod_jk-1.3-eapi.so Also note that you should have mod_so compiled into apache in order to load dynamic modules : look at the output of "httpd -l" As we say in french, www.chezmoicamarche.org :) Vincent. On Fri, 2003-03-21 at 04:16, Tarun Ghanshyam Abhichandani wrote: > > Hi: > > I am trying to configure mod_jk 1.3 to work between Apache 1.3.27 with > mod_ssl and Tomcat 4.1.18 on Linux Version 7.1. > > After installing Apache 1.3.27 and Tomcat 4.1.18 when I update > httpsd.conf with following two lines "LoadModule jk_module > /libexec/mod_jk.so" "AddModule mod_jk.c" > > And then when I restart Apache 1.3.27 I get the following error: > = > Cannot load /usr/local/apache_1.3.27/libexec/mod_jk.so into > server: /usr/local/apache_1.3.27/libexec/mod_jk.so: undefined symbol: > ap_ctx_get > ./httpsdctl start: httpsd could not be started. > === > > Any indications where am I going wrong? > > Thanks > Tarun > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > signature.asc Description: This is a digitally signed message part