You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Lars Nielsen Lind <mo...@tiscali.dk> on 2003/04/21 20:17:33 UTC

Apache-Tomcat mod_jk

Hi.

Is it possible to use Apache-Tomcat with mod_jk only as a service with port 8009 like it is with mod_webapp?

Best regards,

Lars Nielsen Lind

Re: Apache-Tomcat mod_jk

Posted by Lars Nielsen Lind <mo...@worldonline.dk>.
Another related question...

If I have 10 IP-based domains (192.168.1.201 -> 192.168.1.210) and I
want to use them all with SSL. How do I configure that?

In my server.xml I have created a <Host> for each domain.

My <Engine> has a defaultHost = 127.0.0.1.

My workers.properties is as follow:

workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.24
workers.java_home=/usr/java/j2sdk1.4.1_02
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=127.0.0.1
worker.ajp13.type=ajp13

.. but it does not work...

Any solutions?


Best regards,

Lars Nielsen Lind



ons, 2003-04-23 kl. 18:55 skrev John Turner:
> I wouldn't use the ":80" in your Tomcat Host definition, and if you are 
> using ApacheConfig and including mod_jk.conf, there's no need to hard-code 
> the JkMount statements in your Apache virtual host directive.
> 
> John
> 
> On 23 Apr 2003 15:30:15 +0200, Lars Nielsen Lind <mo...@worldonline.dk> 
> wrote:
> 
> >
> > Ups - now it works! :-) both *.html and *.jsp.
> >
> > But it is the 'best'/'right' way to do it ?
> >
> > See config files below.
> >
> >
> > Best regards,
> >
> > Lars Nielsen Lind
> >
> >
> > ons, 2003-04-23 kl. 15:00 skrev Lars Nielsen Lind:
> >> Okay - I have now tried different 'setups'. I want to use Tomcat as a
> >> service with Apache.
> >>
> >> I can now execute JavaServer Pages - but I can't see index.html.
> >>
> >> First I executed 192.168.1.201/index.html and then
> >> 192.168.1.201/test.jsp.
> >>
> >>
> >> Here are my configuration and log files:
> >>
> >>
> >> ----------
> >> httpd.conf
> >> ----------
> >>
> >> <VirtualHost 192.168.1.201:80>
> >> 	ServerName 192.168.1.201:80
> >>
> >> 	JkMount /*.jsp ajp13
> >> 	JkMount /servlet/* ajp13
> >>
> >> 	DocumentRoot /usr/local/jakarta-tomcat-4.1.24/webapps/testapp
> >>
> >> 	
> >> 	
> >> 	DirectoryIndex index.html
> >> </VirtualHost>
> >>
> >> Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf
> >>
> >>
> >> ----------
> >> server.xml
> >> ----------
> >>
> >> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> >>
> >> 	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >> modJk="/usr/local/apache-2.0.45/modules/mod_jk.so" jkDebug="info"
> >> workersConfig="/usr/local/jakarta-tomcat- 
> >> 4.1.24/conf/jk/workers.properties" jkLog="/usr/local/jakarta-tomcat- 
> >> 4.1.24/logs/mod_jk.log" />
> >>
> >> 	<Service name="Tomcat-Standalone">
> >> 		<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> >> port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
> >> debug="0"/>
> >>
> >> 			<Engine name="Standalone" defaultHost="192.168.1.201:80" debug="0">
> >>
> >> 			<Logger className="org.apache.catalina.logger.FileLogger"
> >> prefix="catalina_log." suffix=".txt" timestamp="true"/>
> >>
> >> 				<Host name="192.168.1.201:80" debug="0" unpackWARs="true"
> >> autoDeploy="true">
> >>
> >> 					<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> >> append="true" />
> >>
> >> 			<Logger className="org.apache.catalina.logger.FileLogger"
> >> directory="logs"  prefix="testapp_log." suffix=".txt" timestamp="true"/>
> >> 				
> >> 					<Context path=""
> >> docBase="/usr/local/jakarta-tomcat-4.1.24/webapps/testapp" debug="0"/>
> >>
> >> 				</Host>
> >>
> >> 			</Engine>
> >>
> >> </Service>
> >>
> >> </Server>
> >>
> >>
> >> ------------------
> >> workers.properties
> >> ------------------
> >>
> >> workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.24
> >> workers.java_home=/usr/java/j2sdk1.4.1_02
> >> ps=/
> >> worker.list=ajp13
> >> worker.ajp13.port=8009
> >> worker.ajp13.host=192.168.1.201
> >> worker.ajp13.type=ajp13
> >> worker.ajp13.lbfactor=1
> >>
> >>
> >>
> >> --------------------
> >> Tomcat - testapp.log
> >> --------------------
> >>
> >> 2003-04-23 14:54:14 WebappLoader[]: Deploying class repositories to work
> >> directory
> >> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/192.168.1.201:80/_
> >> 2003-04-23 14:54:14 ContextConfig[]: Missing application web.xml, using
> >> defaults only
> >> 2003-04-23 14:54:15 StandardManager[]: Seeding random number generator
> >> class java.security.SecureRandom
> >> 2003-04-23 14:54:15 StandardManager[]: Seeding of random number
> >> generator has been completed
> >> 2003-04-23 14:54:15 StandardWrapper[:default]: Loading container servlet
> >> default
> >> 2003-04-23 14:54:15 StandardWrapper[:invoker]: Loading container servlet
> >> invoker
> >>
> >>
> >> ------------------
> >> Apache - error.log
> >> ------------------
> >>
> >> [Wed Apr 23 14:54:30 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
> >> OpenSSL/0.9.7b mod_jk/1.2.3-dev configured -- resuming normal operations
> >> [Wed Apr 23 14:54:38 2003] [error] [client 192.168.1.46] Directory index
> >> forbidden by rule: /usr/local/jakarta-tomcat-4.1.24/webapps/testaåå/
> >>
> >>
> >> -------------------
> >> Apache - access.log
> >> -------------------
> >>
> >> 192.168.1.46 - - [23/Apr/2003:14:54:38 +0200] "GET / HTTP/1.1" 403 328
> >> 192.168.1.46 - - [23/Apr/2003:14:57:23 +0200] "GET /test.jsp HTTP/1.1"
> >> 200 1335
> >>
> >>
> >>
> >> What is wrong?
> >>
> >>
> >>
> >> Lars Nielsen Lind
> >>
> >>
> >>
> >> tir, 2003-04-22 kl. 16:40 skrev John Turner:
> >> > Right on. :)
> >> > > What's the URL for the Wiki that you've posted before?  I need to 
> >> bookmark > it.
> >> > > John
> >> > > On Tue, 22 Apr 2003 10:35:08 -0400, Noel J. Bergman 
> >> <no...@devtech.com> > wrote:
> >> > > >> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP 
> >> connector > >> on
> >> > >> 8080, and a JK/JK2 connector on 8009.
> >> > >
> >> > > Nitpick: it also listens for SHUTDOWN on 8005.
> >> > >
> >> > > 	--- Noel
> >> > >
> >> > >
> >> > > --------------------------------------------------------------------- 
> >>
> >>
> >> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >> > >
> >> > >
> >> > >
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


mod_jk build on UNIX - mini How To

Posted by Mark Eggers <it...@yahoo.com>.
In the flavor of my recently posted mod_jk2 mail
message, here's one for mod_jk.

Again, I'm just a network/sysadmin/application person
and in no way associated with the ASO.  The following
is based on my experience (just did it this morning).

This was done on Redhat 9 Linux, but it should work
for all flavors of
UNIX systems.

1. Download
jakarta-tomcat-connectors-jk-1.2.2-src.tar.gz from
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2/src/

2. Uncompress it and extract the tar file.

3. jakarta-tomcat-connectors-jk-1.2.2-src/jk/native

4. chmod u+x configure

5. Run configure with:

   ./configure
  --with-apxs=<apache-root-directory>/bin/apxs \
  --with-java-home=<java-root-directory> \
  --with-jni

For example:

  ./configure --with-apxs=/home/apache/bin/apxs \
	      --with-java-home=/usr/java \
	      --with-jni

6. If you use Apache 1.3 with SSL (mod_ssl), you will
need to add the following to your configure command:  

--enable-EAPI

For example:

  ./configure --with-apxs=/home/apache/bin/apxs \
	      --with-java-home=/usr/java \
	      --with-jni \
	      --enable-EAPI

6. Run make

7. The .so files will be in the appropriate
subdirectories:

apache-1.3 - mod_jk for apache 1.3.x
apache-2.0 - mod_jk for apache 2.0.x
iis        - mod_jk for iis
jni        - jkjni (if selected during configure)
netscape   - mod_jk for netscape server
domino     - mod_jk for domino server

8. Copy those to files to
<apache-root-directory>/modules with the proper
permissions.

9. Configure and restart

HTH

/mde/
just my two cents . . . .

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by John Turner <to...@johnturner.com>.
I wouldn't use the ":80" in your Tomcat Host definition, and if you are 
using ApacheConfig and including mod_jk.conf, there's no need to hard-code 
the JkMount statements in your Apache virtual host directive.

John

On 23 Apr 2003 15:30:15 +0200, Lars Nielsen Lind <mo...@worldonline.dk> 
wrote:

>
> Ups - now it works! :-) both *.html and *.jsp.
>
> But it is the 'best'/'right' way to do it ?
>
> See config files below.
>
>
> Best regards,
>
> Lars Nielsen Lind
>
>
> ons, 2003-04-23 kl. 15:00 skrev Lars Nielsen Lind:
>> Okay - I have now tried different 'setups'. I want to use Tomcat as a
>> service with Apache.
>>
>> I can now execute JavaServer Pages - but I can't see index.html.
>>
>> First I executed 192.168.1.201/index.html and then
>> 192.168.1.201/test.jsp.
>>
>>
>> Here are my configuration and log files:
>>
>>
>> ----------
>> httpd.conf
>> ----------
>>
>> <VirtualHost 192.168.1.201:80>
>> 	ServerName 192.168.1.201:80
>>
>> 	JkMount /*.jsp ajp13
>> 	JkMount /servlet/* ajp13
>>
>> 	DocumentRoot /usr/local/jakarta-tomcat-4.1.24/webapps/testapp
>>
>> 	
>> 	
>> 	DirectoryIndex index.html
>> </VirtualHost>
>>
>> Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf
>>
>>
>> ----------
>> server.xml
>> ----------
>>
>> <Server port="8005" shutdown="SHUTDOWN" debug="0">
>>
>> 	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>> modJk="/usr/local/apache-2.0.45/modules/mod_jk.so" jkDebug="info"
>> workersConfig="/usr/local/jakarta-tomcat- 
>> 4.1.24/conf/jk/workers.properties" jkLog="/usr/local/jakarta-tomcat- 
>> 4.1.24/logs/mod_jk.log" />
>>
>> 	<Service name="Tomcat-Standalone">
>> 		<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
>> port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
>> debug="0"/>
>>
>> 			<Engine name="Standalone" defaultHost="192.168.1.201:80" debug="0">
>>
>> 			<Logger className="org.apache.catalina.logger.FileLogger"
>> prefix="catalina_log." suffix=".txt" timestamp="true"/>
>>
>> 				<Host name="192.168.1.201:80" debug="0" unpackWARs="true"
>> autoDeploy="true">
>>
>> 					<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
>> append="true" />
>>
>> 			<Logger className="org.apache.catalina.logger.FileLogger"
>> directory="logs"  prefix="testapp_log." suffix=".txt" timestamp="true"/>
>> 				
>> 					<Context path=""
>> docBase="/usr/local/jakarta-tomcat-4.1.24/webapps/testapp" debug="0"/>
>>
>> 				</Host>
>>
>> 			</Engine>
>>
>> </Service>
>>
>> </Server>
>>
>>
>> ------------------
>> workers.properties
>> ------------------
>>
>> workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.24
>> workers.java_home=/usr/java/j2sdk1.4.1_02
>> ps=/
>> worker.list=ajp13
>> worker.ajp13.port=8009
>> worker.ajp13.host=192.168.1.201
>> worker.ajp13.type=ajp13
>> worker.ajp13.lbfactor=1
>>
>>
>>
>> --------------------
>> Tomcat - testapp.log
>> --------------------
>>
>> 2003-04-23 14:54:14 WebappLoader[]: Deploying class repositories to work
>> directory
>> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/192.168.1.201:80/_
>> 2003-04-23 14:54:14 ContextConfig[]: Missing application web.xml, using
>> defaults only
>> 2003-04-23 14:54:15 StandardManager[]: Seeding random number generator
>> class java.security.SecureRandom
>> 2003-04-23 14:54:15 StandardManager[]: Seeding of random number
>> generator has been completed
>> 2003-04-23 14:54:15 StandardWrapper[:default]: Loading container servlet
>> default
>> 2003-04-23 14:54:15 StandardWrapper[:invoker]: Loading container servlet
>> invoker
>>
>>
>> ------------------
>> Apache - error.log
>> ------------------
>>
>> [Wed Apr 23 14:54:30 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
>> OpenSSL/0.9.7b mod_jk/1.2.3-dev configured -- resuming normal operations
>> [Wed Apr 23 14:54:38 2003] [error] [client 192.168.1.46] Directory index
>> forbidden by rule: /usr/local/jakarta-tomcat-4.1.24/webapps/testaåå/
>>
>>
>> -------------------
>> Apache - access.log
>> -------------------
>>
>> 192.168.1.46 - - [23/Apr/2003:14:54:38 +0200] "GET / HTTP/1.1" 403 328
>> 192.168.1.46 - - [23/Apr/2003:14:57:23 +0200] "GET /test.jsp HTTP/1.1"
>> 200 1335
>>
>>
>>
>> What is wrong?
>>
>>
>>
>> Lars Nielsen Lind
>>
>>
>>
>> tir, 2003-04-22 kl. 16:40 skrev John Turner:
>> > Right on. :)
>> > > What's the URL for the Wiki that you've posted before?  I need to 
>> bookmark > it.
>> > > John
>> > > On Tue, 22 Apr 2003 10:35:08 -0400, Noel J. Bergman 
>> <no...@devtech.com> > wrote:
>> > > >> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP 
>> connector > >> on
>> > >> 8080, and a JK/JK2 connector on 8009.
>> > >
>> > > Nitpick: it also listens for SHUTDOWN on 8005.
>> > >
>> > > 	--- Noel
>> > >
>> > >
>> > > --------------------------------------------------------------------- 
>>
>>
>> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>> > >
>> > >
>> > >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by Lars Nielsen Lind <mo...@worldonline.dk>.
Ups - now it works! :-) both *.html and *.jsp.

But it is the 'best'/'right' way to do it ?

See config files below.


Best regards,

Lars Nielsen Lind


ons, 2003-04-23 kl. 15:00 skrev Lars Nielsen Lind:
> Okay - I have now tried different 'setups'. I want to use Tomcat as a
> service with Apache.
> 
> I can now execute JavaServer Pages - but I can't see index.html.
> 
> First I executed 192.168.1.201/index.html and then
> 192.168.1.201/test.jsp.
> 
> 
> Here are my configuration and log files:
> 
> 
> ----------
> httpd.conf
> ----------
> 
> <VirtualHost 192.168.1.201:80>
> 	ServerName 192.168.1.201:80
> 
> 	JkMount /*.jsp ajp13
> 	JkMount /servlet/* ajp13
> 
> 	DocumentRoot /usr/local/jakarta-tomcat-4.1.24/webapps/testapp
> 
> 	
> 	
> 	DirectoryIndex index.html
> </VirtualHost>
> 
>  Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf
> 
> 
> ----------
> server.xml
> ----------
> 
> <Server port="8005" shutdown="SHUTDOWN" debug="0">
> 
> 	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> modJk="/usr/local/apache-2.0.45/modules/mod_jk.so" jkDebug="info"
> workersConfig="/usr/local/jakarta-tomcat-4.1.24/conf/jk/workers.properties" jkLog="/usr/local/jakarta-tomcat-4.1.24/logs/mod_jk.log" />
> 
> 	<Service name="Tomcat-Standalone">
>     
> 		<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
> port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
> debug="0"/>
> 
> 			<Engine name="Standalone" defaultHost="192.168.1.201:80" debug="0">
> 
>      			<Logger className="org.apache.catalina.logger.FileLogger"
> prefix="catalina_log." suffix=".txt" timestamp="true"/> 
> 
> 				<Host name="192.168.1.201:80" debug="0" unpackWARs="true"
> autoDeploy="true">
> 
> 					<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
> append="true" />
> 
>         			<Logger className="org.apache.catalina.logger.FileLogger"
> directory="logs"  prefix="testapp_log." suffix=".txt" timestamp="true"/>
> 				
> 					<Context path=""
> docBase="/usr/local/jakarta-tomcat-4.1.24/webapps/testapp" debug="0"/>
> 
> 				</Host>
> 
> 			</Engine> 
> 
>   </Service>
> 
> </Server>
> 
> 
> ------------------
> workers.properties
> ------------------
> 
> workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.24
> workers.java_home=/usr/java/j2sdk1.4.1_02
> ps=/
> worker.list=ajp13
> worker.ajp13.port=8009
> worker.ajp13.host=192.168.1.201
> worker.ajp13.type=ajp13
> worker.ajp13.lbfactor=1
> 
> 
> 
> --------------------
> Tomcat - testapp.log
> --------------------
> 
> 2003-04-23 14:54:14 WebappLoader[]: Deploying class repositories to work
> directory
> /usr/local/jakarta-tomcat-4.1.24/work/Standalone/192.168.1.201:80/_
> 2003-04-23 14:54:14 ContextConfig[]: Missing application web.xml, using
> defaults only
> 2003-04-23 14:54:15 StandardManager[]: Seeding random number generator
> class java.security.SecureRandom
> 2003-04-23 14:54:15 StandardManager[]: Seeding of random number
> generator has been completed
> 2003-04-23 14:54:15 StandardWrapper[:default]: Loading container servlet
> default
> 2003-04-23 14:54:15 StandardWrapper[:invoker]: Loading container servlet
> invoker
> 
> 
> ------------------
> Apache - error.log
> ------------------
> 
> [Wed Apr 23 14:54:30 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
> OpenSSL/0.9.7b mod_jk/1.2.3-dev configured -- resuming normal operations
> [Wed Apr 23 14:54:38 2003] [error] [client 192.168.1.46] Directory index
> forbidden by rule: /usr/local/jakarta-tomcat-4.1.24/webapps/testaåå/
> 
> 
> -------------------
> Apache - access.log
> -------------------
> 
> 192.168.1.46 - - [23/Apr/2003:14:54:38 +0200] "GET / HTTP/1.1" 403 328
> 192.168.1.46 - - [23/Apr/2003:14:57:23 +0200] "GET /test.jsp HTTP/1.1"
> 200 1335
> 
> 
> 
> What is wrong?
> 
> 
> 
> Lars Nielsen Lind
> 
> 
> 
> tir, 2003-04-22 kl. 16:40 skrev John Turner:
> > Right on. :)
> > 
> > What's the URL for the Wiki that you've posted before?  I need to bookmark 
> > it.
> > 
> > John
> > 
> > On Tue, 22 Apr 2003 10:35:08 -0400, Noel J. Bergman <no...@devtech.com> 
> > wrote:
> > 
> > >> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP connector 
> > >> on
> > >> 8080, and a JK/JK2 connector on 8009.
> > >
> > > Nitpick: it also listens for SHUTDOWN on 8005.
> > >
> > > 	--- Noel
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> > >
> > >
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by Lars Nielsen Lind <mo...@worldonline.dk>.
Okay - I have now tried different 'setups'. I want to use Tomcat as a
service with Apache.

I can now execute JavaServer Pages - but I can't see index.html.

First I executed 192.168.1.201/index.html and then
192.168.1.201/test.jsp.


Here are my configuration and log files:


----------
httpd.conf
----------

<VirtualHost 192.168.1.201:80>
	ServerName 192.168.1.201:80

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

	DocumentRoot /usr/local/jakarta-tomcat-4.1.24/webapps/testapp

	
	
	DirectoryIndex index.html
</VirtualHost>

 Include /usr/local/jakarta-tomcat-4.1.24/conf/auto/mod_jk.conf


----------
server.xml
----------

<Server port="8005" shutdown="SHUTDOWN" debug="0">

	<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/usr/local/apache-2.0.45/modules/mod_jk.so" jkDebug="info"
workersConfig="/usr/local/jakarta-tomcat-4.1.24/conf/jk/workers.properties" jkLog="/usr/local/jakarta-tomcat-4.1.24/logs/mod_jk.log" />

	<Service name="Tomcat-Standalone">
    
		<Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
port="8009" minProcessors="5" maxProcessors="75" acceptCount="10"
debug="0"/>

			<Engine name="Standalone" defaultHost="192.168.1.201:80" debug="0">

     			<Logger className="org.apache.catalina.logger.FileLogger"
prefix="catalina_log." suffix=".txt" timestamp="true"/> 

				<Host name="192.168.1.201:80" debug="0" unpackWARs="true"
autoDeploy="true">

					<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
append="true" />

        			<Logger className="org.apache.catalina.logger.FileLogger"
directory="logs"  prefix="testapp_log." suffix=".txt" timestamp="true"/>
				
					<Context path=""
docBase="/usr/local/jakarta-tomcat-4.1.24/webapps/testapp" debug="0"/>

				</Host>

			</Engine> 

  </Service>

</Server>


------------------
workers.properties
------------------

workers.tomcat_home=/usr/local/jakarta-tomcat-4.1.24
workers.java_home=/usr/java/j2sdk1.4.1_02
ps=/
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=192.168.1.201
worker.ajp13.type=ajp13
worker.ajp13.lbfactor=1



--------------------
Tomcat - testapp.log
--------------------

2003-04-23 14:54:14 WebappLoader[]: Deploying class repositories to work
directory
/usr/local/jakarta-tomcat-4.1.24/work/Standalone/192.168.1.201:80/_
2003-04-23 14:54:14 ContextConfig[]: Missing application web.xml, using
defaults only
2003-04-23 14:54:15 StandardManager[]: Seeding random number generator
class java.security.SecureRandom
2003-04-23 14:54:15 StandardManager[]: Seeding of random number
generator has been completed
2003-04-23 14:54:15 StandardWrapper[:default]: Loading container servlet
default
2003-04-23 14:54:15 StandardWrapper[:invoker]: Loading container servlet
invoker


------------------
Apache - error.log
------------------

[Wed Apr 23 14:54:30 2003] [notice] Apache/2.0.45 (Unix) mod_ssl/2.0.45
OpenSSL/0.9.7b mod_jk/1.2.3-dev configured -- resuming normal operations
[Wed Apr 23 14:54:38 2003] [error] [client 192.168.1.46] Directory index
forbidden by rule: /usr/local/jakarta-tomcat-4.1.24/webapps/testaåå/


-------------------
Apache - access.log
-------------------

192.168.1.46 - - [23/Apr/2003:14:54:38 +0200] "GET / HTTP/1.1" 403 328
192.168.1.46 - - [23/Apr/2003:14:57:23 +0200] "GET /test.jsp HTTP/1.1"
200 1335



What is wrong?



Lars Nielsen Lind



tir, 2003-04-22 kl. 16:40 skrev John Turner:
> Right on. :)
> 
> What's the URL for the Wiki that you've posted before?  I need to bookmark 
> it.
> 
> John
> 
> On Tue, 22 Apr 2003 10:35:08 -0400, Noel J. Bergman <no...@devtech.com> 
> wrote:
> 
> >> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP connector 
> >> on
> >> 8080, and a JK/JK2 connector on 8009.
> >
> > Nitpick: it also listens for SHUTDOWN on 8005.
> >
> > 	--- Noel
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> >
> >
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by John Turner <to...@johnturner.com>.
Right on. :)

What's the URL for the Wiki that you've posted before?  I need to bookmark 
it.

John

On Tue, 22 Apr 2003 10:35:08 -0400, Noel J. Bergman <no...@devtech.com> 
wrote:

>> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP connector 
>> on
>> 8080, and a JK/JK2 connector on 8009.
>
> Nitpick: it also listens for SHUTDOWN on 8005.
>
> 	--- Noel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: Apache-Tomcat mod_jk

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP connector on
> 8080, and a JK/JK2 connector on 8009.

Nitpick: it also listens for SHUTDOWN on 8005.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by John Turner <to...@johnturner.com>.
Disable the default Connector listening on port 8080.  That, by default, is 
the HTTP connector.  Disable that, and leave the (default) JK/JK2 Connector 
enabled on port 8009 and you have what you need.

Tomcat 4.1 comes with 2 connectors enabled by default: a HTTP connector on 
8080, and a JK/JK2 connector on 8009.  Decide which one you want, and 
disable the other.

You disable elements of server.xml by using the comment tags.

John

On Tue, 22 Apr 2003 14:22:28 +0200, Lars Nielsen Lind <mo...@tiscali.dk> 
wrote:

> How do I alter server.xml to do that? What shall I remove/replace or add 
> and
> where in the file?
>
> Any samples?
>
>
> Lars Nielsen Lind
>
> ----- Original Message -----
> From: "John Turner" <to...@johnturner.com>
> To: "Tomcat Users List" <to...@jakarta.apache.org>
> Sent: Monday, April 21, 2003 8:31 PM
> Subject: Re: Apache-Tomcat mod_jk
>
>
>>
>> Yes.
>>
>> John
>>
>> On Mon, 21 Apr 2003 20:17:33 +0200, Lars Nielsen Lind 
>> <mo...@tiscali.dk>
>> wrote:
>>
>> > Hi.
>> >
>> > Is it possible to use Apache-Tomcat with mod_jk only as a service with
>> > port 8009 like it is with mod_webapp?
>> >
>> > Best regards,
>> >
>> > Lars Nielsen Lind
>> >
>>
>>
>>
>> --
>> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by Lars Nielsen Lind <mo...@tiscali.dk>.
How do I alter server.xml to do that? What shall I remove/replace or add and
where in the file?

Any samples?


Lars Nielsen Lind

----- Original Message -----
From: "John Turner" <to...@johnturner.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Monday, April 21, 2003 8:31 PM
Subject: Re: Apache-Tomcat mod_jk


>
> Yes.
>
> John
>
> On Mon, 21 Apr 2003 20:17:33 +0200, Lars Nielsen Lind <mo...@tiscali.dk>
> wrote:
>
> > Hi.
> >
> > Is it possible to use Apache-Tomcat with mod_jk only as a service with
> > port 8009 like it is with mod_webapp?
> >
> > Best regards,
> >
> > Lars Nielsen Lind
> >
>
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: Apache-Tomcat mod_jk

Posted by John Turner <to...@johnturner.com>.
Yes.

John

On Mon, 21 Apr 2003 20:17:33 +0200, Lars Nielsen Lind <mo...@tiscali.dk> 
wrote:

> Hi.
>
> Is it possible to use Apache-Tomcat with mod_jk only as a service with 
> port 8009 like it is with mod_webapp?
>
> Best regards,
>
> Lars Nielsen Lind
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org