tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Emmi" <michelee...@hotmail.com>
Subject RE: Configuring mod_jk - Again!
Date Fri, 20 Dec 2002 19:39:12 GMT
I not cringing....going to put out a how to?  I am looking for one designed 
for "dummies".

The docs on doing this on win2k machine, or anyone for that matter are 
confusing.

Michele






>From: Denise Mangano <DeniseM@complusdata.com>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
>Subject: RE: Configuring mod_jk - Again!
>Date: Fri, 20 Dec 2002 14:04:29 -0500
>
>On a side note - a page I created and placed in my webapps ROOT directory
>does in fact display correctly!!!  Thanks!!!
>
>Denise Mangano
>Help Desk Analyst
>Complus Data Innovations, Inc.
>
>
>-----Original Message-----
>From: Denise Mangano [mailto:DeniseM@complusdata.com]
>Sent: Friday, December 20, 2002 2:03 PM
>To: 'Tomcat Users List'
>Subject: RE: Configuring mod_jk - Again!
>
>
>Well I tried it.  And I added additional JkMount statements:
>
>LoadModule jk_module modules/mod_jk.so
>JkWorkersFile /usr/local/tomcat/conf/jk/workers.properties
>JkLogFile /usr/local/tomcat/logs/mod_jk.log
>JkLogLevel info
>JkLogStampFormat "[%a %b %d %H:%M:%S %Y] "
>JkRequestLogFormat "%w %r %s %T"
>JkMount /*.jsp worker1
>JkMount /tomcat-docs/*.jsp worker1
>JkMount /admin/j_security_check  worker1
>JkMount /admin/*.do  worker1
>JkMount /admin/*.jsp  worker1
>JkMount /webdav/*.jsp  worker1
>JkMount /examples/jsp/security/protected/j_security_check worker1 JkMount
>/examples/snoop  worker1 JkMount /examples/servlet/*  worker1 JkMount
>/examples/CompressionTest  worker1 JkMount /examples/*.jsp  worker1 JkMount
>/examples/servletToJsp  worker1 JkMount /examples/SendMailServlet  worker1
>JkMount /manager/html/*  worker1 JkMount /manager/*  worker1 JkMount
>/manager/*.jsp  worker1
>
>For workers.properties I first tried:
>worker.list=worker1
>worker.worker1.type=ajp13
>worker.worker1.host=localhost
>worker.worker1.port=8009
>
>
>Now when I go to http://localhost/index.jsp it displays the tomcat home
>page, but the images are missing (looks like the path is not right)... 
>Also,
>I can't get to any other page.  For example.  I try going to
>http://localhost/examples/servlets/ and I get a HTTP 404 Page not found
>error.  Any further suggestions?
>
>I tried changing workers.properties to:
>worker.list=worker1
>worker.worker1.type=ajp13 worker.worker1.host=www.mydomainname.com
>worker.worker1.port=8009
>
>But the same situation...  Thanks though - this is definitely a start!
>
>Denise Mangano
>Help Desk Analyst
>Complus Data Innovations, Inc.
>
>
>-----Original Message-----
>From: Iran Marcius [mailto:iran@isic.com.br]
>Sent: Friday, December 20, 2002 1:18 PM
>To: 'Tomcat Users List'
>Subject: RES: Configuring mod_jk - Again!
>
>
>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:DeniseM@complusdata.com]
>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:iran@isic.com.br]
>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:DeniseM@complusdata.com]
>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:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
>
>--
>To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:
><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail:
><mailto:tomcat-user-help@jakarta.apache.org>
>
>--
>To unsubscribe, e-mail:   
><mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: 
><mailto:tomcat-user-help@jakarta.apache.org>


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 3 months FREE*. 
http://join.msn.com/?page=features/junkmail&xAPID=42&PS=47575&PI=7324&DI=7474&SU=

http://www.hotmail.msn.com/cgi-bin/getmsg&HL=1216hotmailtaglines_stopmorespam_3mf


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


Mime
View raw message