Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 58798 invoked from network); 17 Jul 2003 13:59:35 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 17 Jul 2003 13:59:35 -0000 Received: (qmail 17824 invoked by uid 97); 17 Jul 2003 14:02:07 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 17817 invoked from network); 17 Jul 2003 14:02:06 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 17 Jul 2003 14:02:06 -0000 Received: (qmail 56072 invoked by uid 500); 17 Jul 2003 13:58:56 -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 56019 invoked from network); 17 Jul 2003 13:58:56 -0000 Received: from unknown (HELO JTURNER) (207.86.123.243) by daedalus.apache.org with SMTP; 17 Jul 2003 13:58:56 -0000 Received: from JTURNER ([127.0.0.1]) by JTURNER with Microsoft SMTPSVC(5.0.2195.5329); Thu, 17 Jul 2003 09:58:56 -0400 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Changing URL References: <002501c34c64$6c134a70$3901a8c0@devruchi> Message-ID: Content-Type: text/plain; charset=iso-8859-15; format=flowed From: John Turner Date: Thu, 17 Jul 2003 09:58:55 -0400 In-Reply-To: <002501c34c64$6c134a70$3901a8c0@devruchi> User-Agent: Opera7.03/Win32 M2 build 2670 X-OriginalArrivalTime: 17 Jul 2003 13:58:56.0802 (UTC) FILETIME=[909E7020:01C34C6B] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Well, if doesn't work then you have a fairly serious problem on your hands. Unless you mean that the above doesn't work for "http://localhost"? (it shouldn't) But if you are saying it doesn't work for "http://localhost/xyz" then that's a big problem. Can you post your server.xml file and an explanation of your directory structure? John On Thu, 17 Jul 2003 09:07:48 -0400, Ruchi Dayal wrote: > John: > > Here's what I changed the root context of server.xml to, so that I can > use http://localhost to get to the actual location http://localhost/xyz > > > Just like you mentioned. > I also tried > > > Neither works. Which means that I am unable to access xyz by just typing > http://localhost > > Thanks, > Ruchi > > > > -----Original Message----- > From: John Turner [mailto:tomcat-user@johnturner.com] Sent: Wednesday, > July 16, 2003 4:44 PM > To: Tomcat Users List > Subject: Re: Changing URL > > > > 304 means its cached. Do you have your browser's cache turned off? You > > can't test accurately unless you do. > > You should see entries in mod_jk.log for JSP and servlet requests. > > There's no problem with Apache serving a file from > CATALINA_HOME/xyz...it doesn't matter. Don't get caught up in file > location, focus on the > server doing the serving. In the lines you posted, the server doing the > serving is Apache, the location of the file being under > CATALINA_HOME/webapps/xyz is irrelevant since CATALINA_HOME/webapps/xyz > can easily be a valid file > > location for Apache. > > You'll have to clarify what you mean by "changing the ROOT context > doesn't help". What exactly did you do? > > John > > On Wed, 16 Jul 2003 16:30:09 -0400, Ruchi Dayal > wrote: > >> John: >> >> Changing the ROOT context doesn't help. >> >> Also, here's what my APACHE_HOME/logs/access.log reads like when I hit > >> http://localhost/xyz >> >> 127.0.0.1 - - [16/Jul/2003:16:22:10 -0400] "GET /xyz/index.html >> HTTP/1.1" 304 0 127.0.0.1 - - [16/Jul/2003:16:22:10 -0400] "GET >> /xyz/xyz.css HTTP/1.1" 304 0 >> 127.0.0.1 - - [16/Jul/2003:16:22:10 -0400] "GET /xyz/images.js > HTTP/1.1" >> 304 0 >> >> And so on.... >> >> Does this indicate that html is still being retrieved from >> CATALINA_HOME/xyz as I suspect? If yes, what should I do to make Apache >> serve HTML and call Tomcat for JSP only? >> >> Thanks in advance, >> Ruchi >> >> >> >> >> -----Original Message----- >> From: John Turner [mailto:tomcat-user@johnturner.com] Sent: Wednesday, >> July 16, 2003 4:12 PM >> To: Tomcat Users List >> Subject: Re: Changing URL >> >> >> On Wed, 16 Jul 2003 16:04:13 -0400, Ruchi Dayal >> wrote: >> >>> Hello: >>> >>> I finally succeeded in using Tomcat 4.1 behind Apache 1.3.27 on Win32 >>> platform. >> >> Congratulations! >> >>> >>> Now I intend to do the following: >>> >>> I have an application, xyz in TOMCAT_HOME/webapps/xyz. I can see this >>> from Apache when I type: >>> >>> http://localhost/xyz >>> >>> Firstly, does this mean that my HTMLs are being served by Apache and >>> JSPs by Tomcat? >> >> The only way to confirm this is to consult your access logs, as both >> Tomcat and Apache can serve HTML files. This is also dependent on your >> mod_jk configuration (JkMount in httpd.conf). >> >>> Secondly, is it possible to access the entire application by just the >>> following: >>> >>> http://localhost >>> >>> That is, I don't want to type xyz anymore in the URL. >> >> See the ROOT Context example in the default server.xml. Something like: >> >> >> >> Should do the trick for you assuming that your webapp is in >> CATALINA_HOME/webapps/xyz. >> >> John >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org >> >> > > > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/ --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org