in your Context" docBase=""
--- Ian Hunter <[EMAIL PROTECTED]> wrote: > I'm having the same problem. If you request a file OTHER than index.jsp, > you'll get the correct file, but http://servername/index.jsp is ALWAYS the > same file, even if you delete the webapps/ROOT directory. > > Can anyone help? This is really weird!!! > > ----- Original Message ----- > From: "yoom nguyen" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Monday, November 04, 2002 4:55 AM > Subject: server.xml won't change > > > > I had put a info.war file under tomcat-home/webapps/ directory. > > After stop and restart tomcat. A directory info was created > > tomcat-home/webapps/info This is where I would like > > tomcat to direct all (traffic) requested information coming from apache. > > > > However, no matter what I defined in server.xml file. > > Tomcat continue to use the index.jsp under this path > > tomcat-home/webapps/ROOT > > > > this is a portion of what I defined for server.xml, everything else > > are similar to Umberto's document > > > > <Host name="www.gratiot.com" debug="0" appBase="/tomcat-home/webapps/" > > unpackWARs="true" autoDeploy="true"> > > > > <Context path="info" docBase="info" debug="1"/> > > > > > > Do I have to get rid of some default path somewhere > > or define a new default path somewhere. > > > > Thanks much > > > > Yoom > > > > > > > > > > > > > > > > ----- Original Message ----- > > From: Umberto Nicoletti <[EMAIL PROTECTED]> > > Date: Tuesday, October 22, 2002 10:07 am > > Subject: [HOWTO] VIRTUAL HOSTING, APACHE 2.0.43, JK2, TOMCAT 4.1.12 > > > > > I posted to this mailing list before with the subject: JK2 > > > connector and > > > virtual hosting, > > > but got no answer. > > > > > > After some more reading through the ML archives and the documentation > > > I eventually came up with a solution. > > > Just to annoy some more people I wrote a little HOWTO ;-). > > > > > > Hope it will be useful to somebody. > > > > > > Umberto > > > -- > > > Umberto Nicoletti - [EMAIL PROTECTED] | > > > [EMAIL PROTECTED] 049-8239380 (assistenza) > > > > > > "We'll try to make different mistakes this time." - Larry Wall > > > > > ---------------------------------------------------------------------------- > ---- > > > > ------------------------------------------------------------------------- > > Apache 2.0.43 - Tomcat 4.1.12 - jk2 - virtual host HOWTO > > ------------------------------------------------------------------------- > > > > Tue 22 Oct 2002 11:58:28 AM GMT-5 > > Umberto Nicoletti [unicoletti at prometeo.it] > > > > DISCLAIMER > > > > Insert usual disclaimer here. > > > > unusual disclaimer > > Please forget: > > 1) my English > > 2) typos > > 3) names of hosts and installation directories > > > > Also be warned that this is a beta version I just wrote as a reminder. if > you > > encounter errors or discrepancies between what it is written here and what > happens to > > you following this howto (or just want to point out something more > clearly) please > > email me a corrected version of this HOWTO. > > > > /unusual disclaimer > > > > SCENARIO > > > > RedHat Linux 7.2 > > Latest 1.4.x Sun JDK: > > #java -version > > java version "1.4.1_01" > > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_01-b01) > > Java HotSpot(TM) Client VM (build 1.4.1_01-b01, mixed mode) > > Tomcat 4.1.12 binary > > Apache 2.0.43 built from source > > > [./configure -prefix=/usr/local/apache2.0.43 --sysconfdir=/etc/apache --loca > lstatedir=/var --disable-dav --enable-so --enable-proxy --enable-proxy-conne > ct --enable-proxy-http] > > jk2 connector binary from jakarta.apache.org > > > > REQUIREMENTS > > > > Deploy three (in my case) web applications under three different virtual > hosts, making the default vhost > > respond to any name and to the bare IP address. > > > > GETTING STARTED > > > > Download all the packages listed above, get a mug of hot coffee (or beer > if you're German), > > do what I say here and you'll be just fine. > > > > INSTALLING JDK > > > > Note: download the jdk, not just the jre! > > Uncompress the jdk somewhere in the filesystem: > > I chose /usr/local/: > > > > [root@ARLIN72AGE279 apache]# ll /usr/local/ > > total 48 > > lrwxrwxrwx 1 root root 13 Oct 18 17:20 apache -> > apache2.0.43/ > > drwxr-xr-x 15 root root 4096 Oct 21 16:40 apache2.0.43 > > drwxr-xr-x 2 root root 4096 Feb 6 1996 bin > > drwxr-xr-x 2 root root 4096 Feb 6 1996 doc > > drwxr-xr-x 2 root root 4096 Feb 6 1996 etc > > drwxr-xr-x 2 root root 4096 Feb 6 1996 games > > drwxr-xr-x 2 root root 4096 Jun 22 2001 include > > drwxr-xr-x 9 root root 4096 Oct 18 16:37 j2sdk1.4.1_01 > > lrwxrwxrwx 1 root root 14 Oct 18 16:38 java -> > j2sdk1.4.1_01/ > > drwxr-xr-x 2 root root 4096 Feb 6 1996 lib > > drwxr-xr-x 2 root root 4096 Jun 22 2001 libexec > > drwxr-xr-x 2 root root 4096 Feb 6 1996 sbin > > drwxr-xr-x 4 root root 4096 Oct 18 13:07 share > > drwxr-xr-x 2 root root 4096 Feb 6 1996 src > > > > make a symlink named java to j2sdk1.4.1_01/ so that you can easily switch > back and forth > > between different jvms. We will use the same trick for apache and tomcat > afterwards. > > > > Now tell your bash shell where to find java binaries: create a file named > java.sh in > > /etc/profile.d with the following content: > > > > [root@ARLIN72AGE279 apache]# cat /etc/profile.d/java.sh > > # set java environment > > > > export JAVA_HOME=/usr/local/java > > export PATH=$PATH:$JAVA_HOME/bin > > > > export CLASSPATH=$JAVA_HOME/lib > > #EOF > > > > do a chmod: > > #chmod 700 /etc/profile.d/java.sh > > > > Now open a new shell and try this: > > [root@ARLIN72AGE279 apache]# which java > > /usr/local/java/bin/java > > > > You should get the answer given above. If not chek your environment and > make sure that java.sh is executed > > when opening a new shell. > > Try to run a java program or the following: java -version. > > > > If you don't like this way of installing java please ignore it. > > > > Make sure everything is ok and then jump to next step. > > > > INSTALLING APACHE > > > > Download the latest release, uncompress it, cd into the newly created > directory and run the following: > > [root@ARLIN72AGE279 apache]# > ./configure -prefix=/usr/local/apache2.0.43 --sysconfdir=/etc/apache --local > statedir=/var --disable-dav --enable-so > > > > Of course you can customize the installation specifying other modules to > enable or whatever you like. > > Just don't forget to ENABLE-SO, because that's what you need to load the > apache-tomcat connector. > > > > Run make and make install. Create the log directories and others (you can > === message truncated === ===== http://dhtmlkitchen.com/ JSP | Servlets | DHTML Garrett Needs A Job __________________________________________________ Do you Yahoo!? HotJobs - Search new jobs daily now http://hotjobs.yahoo.com/ -- To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
