Thanks for the answer. I followed the tutorial you propose ( http://wiki.apache.org/tomcat/TomcatDevelopmentVirtualHosts ). But it is still not working. Here is my new configuration
server.xml <Host name="2nddomain.com" appBase="/opt/apache-tomcat-7.0.32/2nddomain.com" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>2nddomain.com</Alias> <Alias>www.2nddomain.com</Alias> </Host> The directory /opt/apache-tomcat-7.0.32/2nddomain.com contains a ROOT.war file. I edited the /etc/hosts file and added the following entries: 88.84.140.88 www.2nddomain.com:8080 88.84.140.88 www.1rstdomain.com:8080 Then I restarted the system and the tomcat server. Entering www.2nddomain.com:8080 sends me to 1rstdomain.com. I noticed that the file "/opt/apache-tomcat-7.0.32/2nddomain.com/ROOT.war" remains untouched by tomcat, at least nothing is extracted from the war file. So what else am I missing here? 2012/11/22 Caldarale, Charles R <chuck.caldar...@unisys.com>: >> From: Paul van Hoven [mailto:paul.van.ho...@googlemail.com] >> Subject: Tomcat with multiple domains > >> I found the following tutorial (very old) on the web: >> http://onjava.com/pub/a/onjava/2006/08/30/publishing-multiple-sites-using-single-tomcat.html > > Probably best to completely ignore anything that old. > >> I payed attention to the offical Tomcat documentation in regard of this: >> http://tomcat.apache.org/tomcat-7.0-doc/virtual-hosting-howto.html > > That's good to look at, as is this: > http://wiki.apache.org/tomcat/HowTo#How_do_I_set_up_Tomcat_virtual_hosts_in_a_development_environment.3F > > The steps apply to production as well as development. > >> In my $CATALINA_HOME (which is /opt/apache-tomcat-7.0.32) I created >> the folder "my2ndDomain" > > This is only speculation (too lazy to look at the code right now), but domain > names are defined to be case-insensitive, and typically presented only in > lower case. What happens if you change my2ndDomain to my2nddomain everywhere? > >> <Context path="my2ndDomain" debug="0" reloadable="false"/> > > The above is really, really bad. You shouldn't be putting <Context> elements > in server.xml, and besides, the contents of that one are gibberish. What did > you expect to achieve with it? > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you received > this in error, please contact the sender and delete the e-mail and its > attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org