Hi,
     The process is not same, but it is whole lot simpler than
mod_jserv. Most of the confusion is if u have configured mod_jserv
already. I suggest u install tomcat3.2 before using mod_jk.dll, This
helps a lot during configuration. Here are the steps while configuring
mod_jk

1) If u have already configured mod_jserv remove its directive ie
remove the previous include directive which u had appended to
httdp.conf. I also suggest u remove the ApacheModuleJserv.dll from
<apache>\modules\ though its not necessary.

2)  Copy mod_jk.dll to <apache>\modules
3) Append the following line to httdp.conf file of Apache

 Include "<path to tomcat>\conf\mod_jk.conf"

4) In the workers.properties file in <tomcat>\conf\ find the following
lines set it to point to ur tomcat root and jdk root folders

workers.tomcat_home=d:\tomcat
workers.java_home=c:\jdk1.3
 ps=\

5) Put the following lines to mod_jk.conf. Here i am assuming the appl
is in d:\tomcat\webapps\ums and context path is "\" ie
on typing "http:\\localhost\" u need to access the index.jsp in ums

 LoadModule jk_module modules/mod_jk.dll
JkWorkersFile "D:/tomcat/conf/workers.properties"
JkLogFile "D:/tomcat/logs/mod_jk.log"
JkLogLevel error

DocumentRoot d:/tomcat/webapps/ums

<Directory "d:/tomcat/webapps/ums">
  Options Indexes FollowSymLinks
  Options -Indexes
  DirectoryIndex index.jsp
</Directory>

JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

<Location "/WEB-INF/" >
    AllowOverride None
    deny from all
</Location>

<Directory "D:/tomcat/webapps/ums/WEB-INF/">
    AllowOverride None
    deny from all
</Directory>


4) Add the following into "<path>\conf\server.xml"

<Context path="/" docBase="webapps/ums">
</Context>


5)Start tomact
6) Start Apache


Pls note the above configuration used apjv12 for communication with apache.
I recommend to use apjv13 as it is faster and supports https. to use apjv13 add the 
following
to <tomcat>\conf\server.xml


<Connector className="org.apache.tomcat.service.PoolTcpConnector">
  <Parameter name="handler" 
value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
  <Parameter name="port" value="8009"/>
</Connector>

Change the following lines in the above mod_jk.dll

JkMount /*.jsp ajp12
JkMount /servlet/* ajp12

to

JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


Hoping this will help u :-)

Regards
John Thomas
IBS Software Services




>Is the process the same when using mod_jk.dll?
>
>Thank you,
>Rob
>
>John Thomas wrote:

> Hi,
>  Here's the step by step process for WinNT using mod_jserv and
tomcat:
>
> 1) Dowload ApacheModuleJserv.dll from tomcat binary downloads and
copy
> it to the <Apache>\Modules directory.
> 2) Append the following line to httdp.conf  file in <apache>\conf\
> directory
>      Include "<path to tomcat>\conf\tomcat.conf"
> 3) Supposing that ur application is in "d:\tomcat\webapps\ums" (this
> is a sample, type ur own app path) type the following lines in
> "tomcat.conf"
>
> ApJServManual on
> ApJServDefaultProtocol ajpv12
> ApJServSecretKey DISABLED
> ApJServMountCopy on
> ApJServLogLevel notice
>
> ApJServDefaultPort 8007
>
> AddType text/jsp .jsp
> AddHandler jserv-servlet .jsp
>
> ApJServMount /servlet /ums
>
> DocumentRoot d:/tomcat/webapps/ums
>
> <Directory "d:/tomcat/webapps/ums">
>     Options Indexes FollowSymLinks
>     Options -Indexes
>     DirectoryIndex index.jsp
> </Directory>
>
> <Location "/Web-inf" >
>     AllowOverride None
>     deny from all
> </Location>
>
> 4) Add the following into "<path>\conf\server.xml"
>
> <Context path="/" docBase="webapps/ums">
>  </Context>
>
> 5) Start tomcat
> 6) Start apache
> 7) Now on typing "http:\\localhost\" ur browser will automatically
open index.jsp file DocumentRoot folder.
>
> Regards
> John Thomas
> IBS Software Services.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to