So lets go!

In my case, I put this configurarions in server, I mean, outside any
Apache directive. You can put it, for example, right bellow "Listen"
apache directive (coincidentally where we find the first DSO directives,
just a detail).

That "worker1" is na arbitrary name I picked for my worker (see
workers.properties file). You can change it if you want, but the names
must be concise in httpd.conf and workers.properties.

About the ROOT directory, AFAIK, its just a mapping to tell apache what
must be forwarded to tomcat, so, in the example I sent you (JkMount
/test worker1, JkMount /test/* worker1), if you type http://<host>/test
or http://<host>/test/<anything>, apache will forward the request to
tomcat.

Hope it helps.

iran

-----Mensagem original-----
De: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Enviada em: sexta-feira, 20 de dezembro de 2002 15:59
Para: 'Tomcat Users List'
Assunto: RE: Configuring mod_jk - Again!


At this point I am willing to try anything - I am getting desperate...

Where in the httpd.conf file would that information go?  Also what is
worker1?  Should the last two JkMount statements point to my ROOT
directory?

Thanks.

Denise Mangano



-----Original Message-----
From: Iran Marcius [mailto:[EMAIL PROTECTED]] 
Sent: Friday, December 20, 2002 11:30 AM
To: 'Tomcat Users List'
Subject: RES: Configuring mod_jk - Again!


Hi Denise. I successfully integrated apache 2.0.43 and tomcat 4.1.16
with a
simplistic configuration.

httpd.conf
----------
LoadModule jk_module modules/mod_jk-2.0.43.so
JkWorkersFile conf/workers.properties
JkLogFile logs/mod_jk.log
JkLogLevel info
JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
JkRequestLogFormat "%w %r %s %T"
JkMount /test worker1
JkMount /test/* worker1

in workers.properties
---------------------
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host=localhost
worker.worker1.port=8009

...and nothing more. It worked for me.

About the static mappings you did, I read it from the manual:

Caution: If Apache is configured to serve static pages for a web
application
it bypasses any security contraints you may have configured in your web
application web.xml config file. 

That discouraged me to map static pages.

Hope it help.

iran


-----Mensagem original-----
De: Denise Mangano [mailto:[EMAIL PROTECTED]] 
Enviada em: sexta-feira, 20 de dezembro de 2002 14:10
Para: 'Tomcat Users List'
Assunto: Configuring mod_jk - Again!


Hi all :) I know some of you are probably cringing saying oh no not
again!
;)

Well its that time again.  Going to get this mod_jk working if it's the
last
thing I do!!  So I followed the how-to...again.   It looks like Apache
is
not getting any errors when trying to see the mod_jk connector.  This
looks
like a success, no?

[Fri Dec 20 09:51:50 2002] [notice] Apache/1.3.23 (Unix)
(Red-Hat/Linux)
mod_jk/1.2.2-dev mod_fastcgi/2.2.12 mod_ssl/2.8.7 OpenSSL/0.9.6b
DAV/1.0.3
PHP/4.1.2 mod_perl/1.26 configured -- resuming normal operations

Now, I'm back to the original problem.  Although it looks like
everything is
fine as separate entities, but I cannot pull up
http://localhost/examples in
my browser.  I still have to use http://localhost:8080/examples.  For
some
reason apache is still looking in the /var/www directory:

[Fri Dec 20 09:57:22 2002] [error] [client 12.42.32.222] File does not
exist: /var/www/html/examples/servlets/index.html

The error message that I was receiving about being unable to locate
mod_jk.so is no longer showing in my catalina.out log and again it looks
like everything is successful... Dec 20, 2002 10:14:14 AM
org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Dec 20, 2002 10:14:14 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Dec 20, 2002 10:14:14 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Dec 20, 2002 10:14:15 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.17

I have attached  my workers.properties, server.xml, and mod_jk.conf file
(Where you see www.mydomain.com in the file on my machine it is my
actual
domain name). In my httpd.conf file my server name is defined the same
as in
the Host directive, and workers.properties.  The only change I made was
to
add the code to include the mod_jk.conf file.  Why is this turning out
to be
such a task?!  Thanks in advance.

Denise Mangano



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

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




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

Reply via email to