RE: [PATCH] Update to mod_jk-howto.html

2001-03-13 Thread Mike Braden

Dan,

I'll start working on this.  It will probably take a couple of days
to find the time to work on it, if that's OK.  If not let me know.


Mike.
--
Mike Braden
[EMAIL PROTECTED]


-Original Message-
From: Dan Milstein [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 12, 2001 11:48 PM
To: [EMAIL PROTECTED]
Subject: Re: [PATCH] Update to mod_jk-howto.html


Mike,

First off, thanks for working on this doc -- it's great to see someone
bringing the user docs for mod_jk up to date.

However, two things:

 1) If you can run 'diff -u' (if you've got it from cvs, 'cvs diff -u'), it
will produce the diff in "unified" format, which makes it possible to merge
changes via the patch program.  Without that, I'd have to apply things more
or less by hand.

 2) Chris Pepper actually submitted some fixes to this same doc (mostly
reformating the HTML and fixing typos), which I have, but haven't yet
committed (my fault).   I want to apply both of your fixes.  I'm attaching a
copy of his patch.  

If you want to make me a very happy committer, you could apply his patch to
the current version under cvs, make your changes, and then produce a diff
from that (I'll then apply that and credit you both).  

If you want to make me merely a fairly happy committer, you can say, "I'm
too busy to do that Dan, so I'm just running diff -u for my fixes based on
what's currently in cvs, and I'll send you that".  Then I can merge your and
Chris's work myself (which won't kill me, and will teach me to commit things
which are sent in!).

-Dan

Mike Braden wrote:
> 
> This patch updates the mod_jk-howto.html to include the latest changes for
> TC3.3's mod_jk configuration files.
> 
> Updates:
> 
> - Updated section on configuring Tomcat to include setting up the
>tag
> - Updated path references to the mod_jk.conf-auto and workers.properties
>   from conf/ to conf/jk/
> 
> Mike.
> --
> Mike Braden
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>  <>
> 
>

> Name: patchfile.txt
>patchfile.txtType: Plain Text (text/plain)
> Encoding: quoted-printable
> 
>

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

-- 

Dan Milstein // [EMAIL PROTECTED]

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




Re: [PATCH] Update to mod_jk-howto.html

2001-03-12 Thread Dan Milstein

Mike,

First off, thanks for working on this doc -- it's great to see someone
bringing the user docs for mod_jk up to date.

However, two things:

 1) If you can run 'diff -u' (if you've got it from cvs, 'cvs diff -u'), it
will produce the diff in "unified" format, which makes it possible to merge
changes via the patch program.  Without that, I'd have to apply things more
or less by hand.

 2) Chris Pepper actually submitted some fixes to this same doc (mostly
reformating the HTML and fixing typos), which I have, but haven't yet
committed (my fault).   I want to apply both of your fixes.  I'm attaching a
copy of his patch.  

If you want to make me a very happy committer, you could apply his patch to
the current version under cvs, make your changes, and then produce a diff
from that (I'll then apply that and credit you both).  

If you want to make me merely a fairly happy committer, you can say, "I'm
too busy to do that Dan, so I'm just running diff -u for my fixes based on
what's currently in cvs, and I'll send you that".  Then I can merge your and
Chris's work myself (which won't kill me, and will teach me to commit things
which are sent in!).

-Dan

Mike Braden wrote:
> 
> This patch updates the mod_jk-howto.html to include the latest changes for
> TC3.3's mod_jk configuration files.
> 
> Updates:
> 
> - Updated section on configuring Tomcat to include setting up the
>tag
> - Updated path references to the mod_jk.conf-auto and workers.properties
>   from conf/ to conf/jk/
> 
> Mike.
> --
> Mike Braden
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>  <>
> 
>   
> Name: patchfile.txt
>patchfile.txtType: Plain Text (text/plain)
> Encoding: quoted-printable
> 
>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 

Dan Milstein // [EMAIL PROTECTED]
Index: mod_jk-howto.html
===
RCS file: /home/cvspublic/jakarta-tomcat/src/doc/mod_jk-howto.html,v
retrieving revision 1.4
diff -u -d -b -r1.4 mod_jk-howto.html
--- mod_jk-howto.html	2000/10/11 19:11:54	1.4
+++ mod_jk-howto.html	2001/02/28 15:24:04
@@ -61,7 +61,7 @@
 Configuring Apache to use mod_jk
 
 Removing the mod_jserv directives
-Obtaining mod_jk
+Obtaining and building mod_jk
 Configuring Tomcat to use the Ajpv13 protocol
 Defining workers for mod_jk
 Configuring Apache to use mod_jk
@@ -105,7 +105,7 @@
 
 Definitions and terminology
 
-During this document I am going to use a few terms, so lets define them:
+During this document I am going to use a few terms, so let's define them:
 
 
  
@@ -209,8 +209,8 @@
 
 On NT
 
-The redirector was developed using Visual C++ Ver.6.0, so having this
-environment is a prereq if you want to perform a custom build.
+The redirector was developed using Visual C++ version 6.0, so having this
+environment is a prerequisite if you want to perform a custom build.
 
 The steps that you need to take are: 
 
@@ -240,53 +240,146 @@
 For Apache
 
 
- Make sure you have Perl 5 installed. The apxs script
- used to build the module is written in Perl.  
+	Make sure your Apache has DSO support. You can check this
+	with $APACHE_HOME/bin/httpd -l. If you see
+	"mod_so.c" in the output, DSO support is available. If it's
+	missing, you may have to recompile or reinstall Apache.
+
+	Find out whether your Apache has EAPI support. If you
+	compiled it yourself from source, EAPI is probably not compiled
+	in, unless you added it yourself (perhaps with mod_ssl). You
+	need to build mod_jk.so with or without EAPI to match your
+	Apache configuration. If you install a mismatched mod_jk.so,
+	$APACHE_HOME/bin/apachectl configtest will warn
+	you.
 
+	Make sure you have Perl 5 installed. The apxs
+	script used to build the module is written in Perl.  
+
  Change directory to
- jakarta-tomcat/src/native/apache1.3 (or apache2.0).
+	jakarta-tomcat/src/native/apache1.3 (or
+	apache2.0).
 
- Build mod_jk.so.  
+	
+	Build mod_jk.so. Following are three techniques you can try,
+	in order of simplicity:
 
- Following are three alternate techniques you can try, in order of
- simplicity.
+		
+		Run ./build-unix.sh, if present in this
+		directory. This script will set some variables, call
+		apxs as below, and try to copy mod_jk.so to
+		$APACHE_HOME/libexec. If it fails, you need to do
+		the following manually:
 
  
- Option 1: Run ./build-unix.sh . This script will set some
- variables, call apxs as below, and try to copy mod_jk.so to
- $APACHE_HOME/libexec.  If it fails, you may need to do the following:
- 
- set JAVA_HOME in your shell, e.g. "set JAVA_HOME=/usr/local/jdk1.2.2; export JAVA_HOME"
- set APACHE_HOME in your shell, e.g. "set APACHE_HOME=/usr/local/apache; export A

[PATCH] Update to mod_jk-howto.html

2001-03-12 Thread Mike Braden

This patch updates the mod_jk-howto.html to include the latest changes for
TC3.3's mod_jk configuration files.

Updates:

- Updated section on configuring Tomcat to include setting up the
   tag
- Updated path references to the mod_jk.conf-auto and workers.properties
  from conf/ to conf/jk/ 

Mike.
--
Mike Braden
[EMAIL PROTECTED]
[EMAIL PROTECTED]
 <> 


311,313c311,313
< In most of simple cases Tomcat can generate the needed Apache configuration.
< When Tomcat starts up it will automatically generate
< a configuration file for Apache in TOMCAT_HOME/conf/mod_jk.conf-auto.
---
> In most simple cases Tomcat can generate the needed Apache configuration. You
> can configure Tomcat so that when it starts up it will automatically generate
> a configuration file for Apache.
315,316c315,326
< include this file (appending "Include 
TOMCAT_HOME/conf/mod_jk.conf-auto")
< in your httpd.conf. That's it, you can
---
> include this file (appending "Include 
>TOMCAT_HOME/conf/jk/mod_jk.conf-auto")
> in your httpd.conf. To configure Tomcat to generate the Apache
> auto-configuration:
> 
> 
> Add the following block to your TOMCAT_HOME/conf/server.xml  file after 
>.
> 
> 
> 
> 
> 
> That's it, you can
326c336
< Tomcat 3.2: you must restart tomcat and apache after adding a 
new
---
> Note that you must restart tomcat and apache after adding a new
328c338
< the file TOMCAT_HOME/conf/mod_jk.conf-auto is generated when
---
> the file TOMCAT_HOME/conf/jk/mod_jk.conf-auto is generated when
330,335c340,344
< overwrite TOMCAT_HOME/conf/mod_jk.conf-auto each startup so
< customized configuration should be kept elsewhere.
< Tomcat 3.3: The default location of mod_jk.conf and
< mod_jk.conf-auto has changed.  They are now in
< TOMCAT_HOME/conf/jk/mod_jk.conf and
< TOMCAT_HOME/conf/jk/mod_jk.conf-auto. 
---
> overwrite TOMCAT_HOME/conf/jk/mod_jk.conf-auto each startup so
> a customized configuration should be kept elsewhere.  For example, copy 
> TOMCAT_HOME/conf/jk/mod_jk.conf-auto to 
>TOMCAT_HOME/conf/jk/mod_jk.conf-local
> before making changes.  You'll need to startup Tomcat once to generate
> this file with your configuration for the first time.
336a346,378
> It is also possible to specify the location of the auto generated files by
> setting options in the  block.  The following details
> the syntax:
> 
> 
> < ContextManager ... >
>   ...
>   
>   ...
> < /ContextManager >
> 
> 
>  where options can include any of the following attributes:
> 
> 
>   confighome - default parent directory for the following paths. If
> not set, this defaults to TOMCAT_HOME. Ignored whenever any of the following
> paths is absolute.
>   jservconfig - path to write apache jserv conf file to. If not set,
> defaults to "conf/jserv/tomcat-apache.conf".
>   jkconfig - path to write apacke mod_jk conf file to. If not set,
> defaults to "conf/jk/mod_jk.conf".
>   workersconfig - path to workers.properties file used by mod_jk. If
> not set, defaults to "conf/jk/workers.properties".
>   modjserv - path to Apache JServ plugin module file. If not set,
> defaults to "modules/ApacheModuleJServ.dll" on windows,
> "modules/Jserv.nlm" on netware, and "libexec/mod_jserv.so"
> everywhere else.
>   modjk - path to Apache mod_jk plugin file. If not set, defaults to
> "modules/mod_jk.dll" on windows, "modules/mod_jk.nlm" on
> netware, and "libexec/mod_jk.so" everywhere else.
>   jklog - path to log file to be used by mod_jk.
> 
342c384
< Workers are configured using the file TOMCAT_HOME/conf/workers.properties.
---
> Workers are configured using the file 
>TOMCAT_HOME/conf/jk/workers.properties.
371c413
< JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
---
> JkWorkersFile /usr/local/jakarta-tomcat/conf/jk/workers.properties
467c509
< JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
---
> JkWorkersFile /usr/local/jakarta-tomcat/conf/jk/workers.properties



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