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:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: <Context path="" docBase="xyz"> Should do the trick for you assuming that your webapp is in CATALINA_HOME/webapps/xyz. John --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
