Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 82297 invoked from network); 31 Jul 2003 15:29:27 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 31 Jul 2003 15:29:27 -0000 Received: (qmail 5012 invoked by uid 97); 31 Jul 2003 15:32:04 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 5005 invoked from network); 31 Jul 2003 15:32:04 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 31 Jul 2003 15:32:04 -0000 Received: (qmail 80870 invoked by uid 500); 31 Jul 2003 15:29:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 80857 invoked from network); 31 Jul 2003 15:29:02 -0000 Received: from smtp-out.voila.wanadooportails.com (193.252.117.74) by daedalus.apache.org with SMTP; 31 Jul 2003 15:29:02 -0000 Received: from voila.fr (10.3.7.82) by smtp-out.voila.wanadooportails.com (6.7.015) id 3EB9456C00C82536 for tomcat-user@jakarta.apache.org; Thu, 31 Jul 2003 17:28:29 +0200 Date: Thu, 31 Jul 2003 17:28:29 +0200 Message-Id: Subject: =?iso-8859-1?Q?Re:_Apache_+_Tomcat_+_mod=5Fjk?= MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "=?iso-8859-1?Q?v.siguier?=" To: "=?iso-8859-1?Q?tomcat-user?=" X-XaM3-API-Version: 3.2 R27 (B52-pl4) X-type: 0 X-SenderIP: 194.2.163.124 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I would like to put .html files under htdocs/geode, .js under htdocs/geod= e/javascript and all images under htdocs/geode/images.=0D=0AIf the user w= ant to access to a html file (http://host:port/geode/*.html), I want it t= o be served by Apache.=0D=0AIf the user want to access to a servlet (http= ://host:port/geode/servlet/*), I want it to be served by Tomcat.=0D=0AIf = the user want to access to a jsp (http://host:port/geode/jsp/*.jsp), I wa= nt it to be served by Tomcat.=0D=0A=0D=0AI hope these precision will help= you to understand exactly what I try to do.=0D=0AWhat do you mean by Doc= umentRoot "C:/jakarta-tomcat-4-1-24/webapps/geode" ?=0D=0A=0D=0A=0D=0ATha= nk you for your help.=0D=0A=0D=0A> =0D=0A> DocumentRoot "C:/jakarta-tomca= t-4-1-24/webapps/geode"=0D=0A> =0D=0A> You will need to copy the mod_jk.c= onf file to some other location and =0D=0A> modify it manually. Change y= our Include line in httpd.conf to reflect =0D=0A> the new location. I li= ke to put mine in the Apache conf directory.=0D=0A> =0D=0A> I'm not sure = what you mean exactly by "directly under Apache"...as =0D=0A> Apache does= n't care where files are located as long as it has the =0D=0A> appropriat= e permissions to access them and can find them. Your files do =0D=0A> no= t have to be under any particular directory.=0D=0A> =0D=0A> I'd have to k= now more about where you want to put your static resources =0D=0A> exactl= y.=0D=0A> =0D=0A> Another option is to do something like:=0D=0A> =0D=0A> = Alias /static "C:/path/to/static/stuff"=0D=0A> =0D=0A> There are various = ways to do it, without knowing exactly what your dir =0D=0A> structure is= , what URL you want to use, etc. it is hard to give you a =0D=0A> specifi= c answer. In any case, you will likely have to modify =0D=0A> mod_jk.con= f by hand, which means putting it in a location where it won't =0D=0A> be= overwritten each time you start Tomcat, otherwise you will have to =0D=0A= > make the same changes over and over again.=0D=0A> =0D=0A> The whole mod= _jk.conf thing is a convenience. It doesn't scale very =0D=0A> well at a= ll. I don't use it for my production servers, I make my =0D=0A> changes = by hand. Its in my HOWTO because its the easiest way for a =0D=0A> newbi= e to get up and running. For complex setups (especially multiple =0D=0A>= virtual hosts and multiple webapps) you will want to avoid relying on it= .=0D=0A> =0D=0A> John=0D=0A> =0D=0A> v.siguier wrote:=0D=0A> =0D=0A> > No= problem, my question is :=0D=0A> > I have configured Apache and Tomcat w= ith mod_jk in order to connect them together but now all ressources of my= application must be located under Tomcat directory to be founded.=0D=0A>= > As I want to put all static ressources directly under Apache, somebody= can tell me what I have to configure in Apache or Tomcat to do this ?=0D= =0A> > =0D=0A> > =0D=0A> > =0D=0A> > =0D=0A> >>Forgive me, but I've lost = track of what this thread is about.=0D=0A> >>=0D=0A> >>What is not happen= ing that you want to see happen, given the =0D=0A> >>configuration files = you've posted? What is your question again?=0D=0A> >>=0D=0A> >>John=0D=0A= > >>=0D=0A> >>v.siguier wrote:=0D=0A> >>=0D=0A> >>=0D=0A> >>>The generate= d jakarta-tomcat-4-1-24\conf\auto\mod_jk.conf :=0D=0A> >>>=0D=0A> >>>####= ###### Auto generated on Thu Jul 31 15:51:00 CEST 2003##########=0D=0A> >= >>=0D=0A> >>>=0D=0A> >>> LoadModule jk_module c:/apa= che/Apache2/modules/mod_jk-2.0.43.dll=0D=0A> >>>=0D=0A> >>>=0D= =0A> >>>JkWorkersFile "C:/jakarta-tomcat-4-1-24/conf/jk/workers.propertie= s"=0D=0A> >>>JkLogFile "C:/jakarta-tomcat-4-1-24/logs/mod_jk.log"=0D=0A> = >>>=0D=0A> >>>JkLogLevel emerg=0D=0A> >>>=0D=0A> >>>=0D=0A> >>>=0D=0A> >>= >=0D=0A> >>> ServerName localhost=0D=0A> >>>=0D= =0A> >>> #################### localhost:/examples ####################= =0D=0A> >>>=0D=0A> >>> # Static files =0D=0A> >>> Alias /examples "= C:/jakarta-tomcat-4-1-24/webapps/examples"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> Opti= ons Indexes FollowSymLinks=0D=0A> >>> DirectoryIndex index.html in= dex.htm index.jsp =0D=0A> >>> =0D=0A> >>>=0D=0A> >>>=0D=0A= > >>> # Deny direct access to WEB-INF and META-INF=0D=0A> >>> #=0D=0A= > >>> =0D=0A> >>> AllowOverride= None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>= >=0D=0A> >>> =0D=0A> >>> Allow= Override None=0D=0A> >>> deny from all=0D=0A> >>> =0D= =0A> >>> #=0D=0A> >>> # Use Directory too. On Windows, Location doe= sn't work unless case matches=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> All= owOverride None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> = deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>> JkMou= nt /examples/jsp/security/protected/j_security_check ajp13=0D=0A> >>> = JkMount /examples/snoop ajp13=0D=0A> >>> JkMount /examples/Compressi= onTest ajp13=0D=0A> >>> JkMount /examples/servlet/* ajp13=0D=0A> >>>= JkMount /examples/*.jsp ajp13=0D=0A> >>> JkMount /examples/servle= tToJsp ajp13=0D=0A> >>> JkMount /examples/SendMailServlet ajp13=0D=0A= > >>>=0D=0A> >>> #################### localhost:/webdav ##############= ######=0D=0A> >>>=0D=0A> >>> # Static files =0D=0A> >>> Alias /webd= av "C:/jakarta-tomcat-4-1-24/webapps/webdav"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> Opti= ons Indexes FollowSymLinks=0D=0A> >>> DirectoryIndex index.jsp ind= ex.html index.htm =0D=0A> >>> =0D=0A> >>>=0D=0A> >>>=0D=0A= > >>> # Deny direct access to WEB-INF and META-INF=0D=0A> >>> #=0D=0A= > >>> =0D=0A> >>> AllowOverride N= one=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>>=0D= =0A> >>> =0D=0A> >>> AllowOverri= de None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> = >>> #=0D=0A> >>> # Use Directory too. On Windows, Location doesn't = work unless case matches=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowOverr= ide None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A= > >>>=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> deny fr= om all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>> JkMount /webda= v/*.jsp ajp13=0D=0A> >>>=0D=0A> >>> #################### localhost:/t= omcat-docs ####################=0D=0A> >>>=0D=0A> >>> # Static files =0D= =0A> >>> Alias /tomcat-docs "C:/jakarta-tomcat-4-1-24/webapps/tomcat-d= ocs"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> Options Indexes FollowSymLinks=0D=0A> >= >> DirectoryIndex index.html index.htm index.jsp =0D=0A> >>> =0D=0A> >>>=0D=0A> >>>=0D=0A> >>> # Deny direct access to WE= B-INF and META-INF=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> deny f= rom all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> = deny from all=0D=0A> >>> =0D=0A> >>> #=0D=0A> >>> = # Use Directory too. On Windows, Location doesn't work unless case matc= hes=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> = >>> deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>>= =0D= =0A> >>> AllowOverride None=0D=0A> >>> deny from all=0D=0A>= >>> =0D=0A> >>>=0D=0A> >>> JkMount /tomcat-docs/*.jsp = ajp13=0D=0A> >>>=0D=0A> >>> #################### localhost:/manager #= ###################=0D=0A> >>>=0D=0A> >>> # Static files =0D=0A> >>> = Alias /manager "C:/jakarta-tomcat-4-1-24/webapps/../server/webapps/mana= ger"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> Options Indexes FollowSym= Links=0D=0A> >>> DirectoryIndex index.html index.htm index.jsp =0D= =0A> >>> =0D=0A> >>>=0D=0A> >>>=0D=0A> >>> # Deny direc= t access to WEB-INF and META-INF=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> = deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> = >>> deny from all=0D=0A> >>> =0D=0A> >>> #=0D=0A>= >>> # Use Directory too. On Windows, Location doesn't work unless cas= e matches=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowO= verride None=0D=0A> >>> deny from all=0D=0A> >>> =0D= =0A> >>>=0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A= > >>> deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A> >= >> JkMount /manager/html/* ajp13=0D=0A> >>> JkMount /manager/resou= rces ajp13=0D=0A> >>> JkMount /manager/undeploy ajp13=0D=0A> >>> = JkMount /manager/sessions ajp13=0D=0A> >>> JkMount /manager/serverinf= o ajp13=0D=0A> >>> JkMount /manager/reload ajp13=0D=0A> >>> JkMou= nt /manager/start ajp13=0D=0A> >>> JkMount /manager/*.jsp ajp13=0D=0A= > >>> JkMount /manager/list ajp13=0D=0A> >>> JkMount /manager/stop= ajp13=0D=0A> >>> JkMount /manager/deploy ajp13=0D=0A> >>> JkMoun= t /manager/roles ajp13=0D=0A> >>> JkMount /manager/remove ajp13=0D=0A= > >>> JkMount /manager/install ajp13=0D=0A> >>>=0D=0A> >>> #######= ############# localhost:/admin ####################=0D=0A> >>>=0D=0A> >>>= # Static files =0D=0A> >>> Alias /admin "C:/jakarta-tomcat-4-1-24/= webapps/../server/webapps/admin"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> = Options Indexes FollowSymLinks=0D=0A> >>> DirectoryIndex index.ht= ml index.htm index.jsp =0D=0A> >>> =0D=0A> >>>=0D=0A> >>>=0D= =0A> >>> # Deny direct access to WEB-INF and META-INF=0D=0A> >>> #=0D= =0A> >>> =0D=0A> >>> AllowOverride= None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>= >=0D=0A> >>> =0D=0A> >>> AllowOve= rride None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A= > >>> #=0D=0A> >>> # Use Directory too. On Windows, Location doesn'= t work unless case matches=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>= > AllowOverride None=0D=0A> >>> deny from all=0D=0A> >>> = =0D=0A> >>>=0D=0A> >>> =0D=0A> >>> AllowOve= rride None=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A= > >>>=0D=0A> >>> JkMount /admin/j_security_check ajp13=0D=0A> >>> = JkMount /admin/*.jsp ajp13=0D=0A> >>> JkMount /admin/*.do ajp13=0D=0A= > >>>=0D=0A> >>> #################### localhost:/geode ###############= #####=0D=0A> >>>=0D=0A> >>> # Static files =0D=0A> >>> Alias /geode= "C:/jakarta-tomcat-4-1-24/webapps/geode"=0D=0A> >>>=0D=0A> >>> =0D=0A> >>> Options = Indexes FollowSymLinks=0D=0A> >>> DirectoryIndex index.html index.= htm index.jsp =0D=0A> >>> =0D=0A> >>>=0D=0A> >>>=0D=0A> >>= > # Deny direct access to WEB-INF and META-INF=0D=0A> >>> #=0D=0A> = >>> =0D=0A> >>> AllowOverride None= =0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>>=0D=0A= > >>> =0D=0A> >>> AllowOverride N= one=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>> = #=0D=0A> >>> # Use Directory too. On Windows, Location doesn't work= unless case matches=0D=0A> >>> #=0D=0A> >>> =0D=0A> >>> AllowOverride N= one=0D=0A> >>> deny from all=0D=0A> >>> =0D=0A> >>>= =0D=0A> >>> =0D=0A> >>> AllowOverride None=0D=0A> >>> deny from all= =0D=0A> >>> =0D=0A> >>>=0D=0A> >>> JkMount /geode/jsp/j= _security_check ajp13=0D=0A> >>> JkMount /geode/*.jsp ajp13=0D=0A> >= >>=0D=0A> >>>=0D=0A> >>>=0D=0A> >>>=0D=0A> >>>=0D=0A> >>>>O= K, but where's mod_jk.conf? That's the critical file!=0D=0A> >>>>=0D=0A>= >>>>John=0D=0A> >>>>=0D=0A> >>=0D=0A> >>=0D=0A> >>=0D=0A> >>------------= ---------------------------------------------------------=0D=0A> >>To uns= ubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org=0D=0A> >>For= additional commands, e-mail: tomcat-user-help@jakarta.apache.org=0D=0A> = >>=0D=0A> >>=0D=0A> > =0D=0A> > -----------------------------------------= -=0D=0A> > =0D=0A> > Faites un voeu et puis Voila ! www.voila.fr =0D=0A> = > =0D=0A> > =0D=0A> > =0D=0A> > -----------------------------------------= ----------------------------=0D=0A> > To unsubscribe, e-mail: tomcat-user= -unsubscribe@jakarta.apache.org=0D=0A> > For additional commands, e-mail:= tomcat-user-help@jakarta.apache.org=0D=0A> > =0D=0A> =0D=0A> =0D=0A> =0D= =0A> --------------------------------------------------------------------= -=0D=0A> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.o= rg=0D=0A> For additional commands, e-mail: tomcat-user-help@jakarta.apach= e.org=0D=0A> =0D=0A> =0D=0A------------------------------------------=0D=0A= =0D=0AFaites un voeu et puis Voila ! www.voila.fr =0D=0A --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org