1) I think trying it without the "/jsp" is worth a shot, from everything I have read the JkMount directive is exactly what you need...the specific path could just as easily be "/" as "/jsp", I don't think it matters. The "/jsp" in the example is for housekeeping, as far as I know, not a specific requirement or limitation.
2) The directives in the example are valid within an apache VirtualHost container, so I'm not sure what you mean about "doesn't address virtual hosts". Granted, it didn't specifically detail exact configuration of a virtual hosts situation, but I thought that could be inferred from the use of valid VirtualHost directives. 3) I believe that all you have to do to server.xml is this, for each virtual host you want to support: <Host name="some.domain.com" > <Context path="" docBase="webapps/examples" /> <Context path="/examples" docBase="webapps/ROOT" /> </Host> Like I said before, I haven't had a chance to set this up yet, so if anyone sees anything wrong, please correct me. John Turner [EMAIL PROTECTED] http://www.aas.com -----Original Message----- From: Alex Short [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 13, 2002 2:40 PM To: Tomcat Users List Subject: RE: mod_jk and Mapping configuration error Unfortunately in two respects this doesn't work for me. 1> It segregates jsp files from html/image files in a /jsp directory. I'd like to have jsp's and html files in the same dir, and have http://www.mysite.net/index.jsp work, not have to do .net/jsp/index.jsp 2> It doesn't address virtual hosts which is important for me. Thanks very much for the help, again if someone has this setup themselves or seen it, by all means. Alex > > I haven't had a chance to try this yet, but a friend of mine sent this to me > late yesterday, it is apparently working for him and seems to be "solid". > He's using apache 1.3. No guarantees that it will work for you, but it > might be worth a shot. I'm going to try it out a little later today for > sure. Apologies to Matthew B. for posting this. :) > > ** in httpd.conf ** > #testing mod_jk! > <IfModule !mod_jk.c> > LoadModule jk_module libexec/mod_jk-01.so > </IfModule> > AddModule mod_jk.c > JkWorkersFile "/usr/local/tomcat-4.0.3/conf/jk/workers.properties" > JkLogFile "/usr/local/tomcat-4.0.3/logs/mod_jk.log" > ## for testing, tune this down for production > JkLogLevel debug > > Alias /jsp "/some/path/to/jsp" > <Directory "/some/path/to/jsp"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > JkMount /jsp/*.jsp ajp13 > > Alias /servlet "/some/path/to/servlet" > <Directory "/some/path/to/servlet"> > Options Indexes FollowSymLinks > DirectoryIndex index.html index.htm index.jsp > </Directory> > JkMount /servlet/* ajp13 > > ** workers.properties file **: > workers.tomcat_home=/usr/local/jakarta-tomcat-4.0.3-LE-jdk14 > workers.java_home=/usr/java/j2sdk1.4.0 > ps=/ > worker.list=ajp13 > > worker.ajp13.port=8007 > worker.ajp13.host=some.host.com > worker.ajp13.type=ajp13 > > ALSO: comment out the AddType text/jsp .js and AddHandler jserv-servlet .jsp > directives. The above config passes off anything in the aliased directories > to the ajp13 connector, and anything else gets served by apache. > > John Turner > [EMAIL PROTECTED] > http://www.aas.com > > > -----Original Message----- > From: Alex Short [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 13, 2002 2:11 PM > To: Tomcat Users List > Subject: Re: mod_jk and Mapping configuration error > > > I'm using Tomcat 4.0.3 > > I've tried looking all over the place for good documentation of > apache+tomcat using mod_jk with Virtual Hosts and found many different > (but none that worked for me) solutions. > > Some said to put Host name= in the server.xml, others said put it in the > workers.properties file. Finally i got it sort of working by creating a > symbolic link in webapps called www.ialex.net which points to my web dir. > But unfortunately that only works if i do > www.ialex.net/www.ialex.net/index.jsp. otherwise it just gives me a 404. > I've fiddled with Context host name and docBase etc, to no avail. > > Does anyone have a working set of server.xml config files for a virtual > host setup using apache+tomcat4+mod_jk ? I want to have .jsp files within > my webdirectory and point them to tomcat by file extention as i tried with > JkMount /*.jsp ajp13 in my config. > > Thanks > > Alex > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
