On Fri, 20 Dec 2002, Justin L. Spies wrote: > Denise, > That's a good question. The indented pieces where what I copied > from my live httpd.conf file and are contained inside of a > <VirtualHost> directive. The LoadModule was from your file. As far > as keeping them together, that is what I do simply because I like to > group similar items. I'm not to keen on the Apache startup process, > so you may need to put the LoadModule near/below the other > LoadModule lines. Perhaps a more experienced Apache user could > comment on this. I then put the JkMount directives near the rest of > the <VirtualHost> directives because, in my mind, they are similar > and belong together.
FWIW, I don't think it matters how the directives are grouped other than whether they are in different VirtualHost sections. > -----Original Message----- > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:25 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Silly question - does the LoadModule statement stay grouped with the > JkMoutn directives, or does that have to be placed with the other > LoadModule directives... > > Thanks... (Thanks for piecing that together - I am going to give that a > whirl)... > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -----Original Message----- > From: Justin L. Spies [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:11 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Denise, > Let me see if this helps you... > > In httpd.conf, try (I've cut up your example from below): > > 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" > > > # Send servlet for context /examples to worker named worker1 > JkMount /servlet/* ajp13 > JkMount /examples/jsp/*.jsp ajp13 > JkMount /examples/servlet/* ajp13 > > # Send JSPs for context /examples to worker named worker1 > JkMount /*.jsp ajp13 > JkMount /admin/* ajp13 > JkMount /manager/* ajp13 > > # Static files in the examples webapp are served by apache > JkAutoAlias /var/tomcat4/webapps/dev.jscs-inc.com > > # This will fix the missing images for you... > Alias /examples /var/tomcat4/webapps/dev.mydomain.com/examples > Alias /tomcat-docs /var/tomcat4/webapps/dev.mydomain.com/tomcat-docs > > # The following line prohibits users from directly access WEB-INF > <Location /examples/WEB-INF/> > AllowOverride None > deny from all > </Location> > > > > Sincerely, > Pantek Incorporated > Justin L. Spies > > URI: http://www.pantek.com > Ph 440.519.1802 > Fax 440.248.5274 > Cell 440.336.3317 > > > > -----Original Message----- > From: Denise Mangano [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 5:03 PM > To: 'Tomcat Users List' > Subject: RE: Configuring mod_jk - Again! > > > Ok, now I added the JkMount /examples/* worker1 and nothing works. > Everything hangs indefinitely. I had all this placed at the end of my > httpd.conf file so it would apply to all virtual hosts. I'm completely > at > a loss, and quite frustrated actually : ( At this point I do not care > if the examples work, I just want to get my app that was working before > back up... > > What on earth could possibly be going wrong? > > Denise Mangano > Help Desk Analyst > Complus Data Innovations, Inc. > > > -----Original Message----- > From: Milt Epstein [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 3:56 PM > To: Tomcat Users List > Subject: RE: Configuring mod_jk - Again! > > > On Fri, 20 Dec 2002, Denise Mangano wrote: > > > 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)... > > You don't really give enough information to tell what's going on with > this, but sometimes there are problems with images that are unrelated to > other problems (e.g. the other problems you're having here). These have > to do with where your images are (e.g. under the webapp, or under some > images directory off the Apache DocumentRoot), and how you reference > them (e.g. relatively or absolutely). > > > > 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? > > You have nothing, that is, no JkMount directive, that would forward that > URL to tomcat. (BTW, that's often the first step in figuring out the > problem with a page, especially if it's a 404, seeing whether it's > Tomcat or Apache that's returning the 404. You can do that by looking > at the returned page or seeing what's in the logs.) I think you need > something like: > > JkMount /examples/* worker1 > > Also, this will allow you to get rid of several of the JkMount > directives you've shown above. > > > > 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:[EMAIL PROTECTED]] > > 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:[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 > [ ... ] > > Milt Epstein > Research Programmer > Integration and Software Engineering (ISE) > Campus Information Technologies and Educational Services (CITES) > University of Illinois at Urbana-Champaign (UIUC) [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]> > > > > -- > 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]> > Milt Epstein Research Programmer Integration and Software Engineering (ISE) Campus Information Technologies and Educational Services (CITES) University of Illinois at Urbana-Champaign (UIUC) [EMAIL PROTECTED] -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
