Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 98409 invoked from network); 7 Oct 2005 09:54:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2005 09:54:00 -0000 Received: (qmail 43567 invoked by uid 500); 7 Oct 2005 09:53:40 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 43510 invoked by uid 500); 7 Oct 2005 09:53:40 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 43463 invoked by uid 99); 7 Oct 2005 09:53:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2005 02:53:39 -0700 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_30_40,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.176.21] (HELO web26310.mail.ukl.yahoo.com) (217.146.176.21) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 07 Oct 2005 02:53:42 -0700 Received: (qmail 61907 invoked by uid 60001); 7 Oct 2005 09:53:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.it; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type; b=2M6yOxVGUhODzeWOdBL3zZJMvroim49VEpNpSKuRUyMvXTyRTR5UzOkVhh3IRJ3l+a6jBG5OeKGLPcnd1waq5hOphqQH+9O0zP7hVQ/nMWhcfAfIoP4a34wXg5ioRroUC1nVTzwNCXwpqwNcyk/aSzt602Cwhe3bjsOaBksB7e8= ; Message-ID: <20051007095316.61905.qmail@web26310.mail.ukl.yahoo.com> Received: from [217.141.50.91] by web26310.mail.ukl.yahoo.com via HTTP; Fri, 07 Oct 2005 11:53:16 CEST Date: Fri, 7 Oct 2005 11:53:16 +0200 (CEST) From: gianni dalmasso Subject: apache virtual hosting + server.xml + context To: tomcat-user@jakarta.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-425775852-1128678796=:61859" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-425775852-1128678796=:61859 Content-Type: text/plain; charset=iso-8859-1 hi list, i have a problem. i have apache 2.0 + tomcat 5.5. i have N name based virtual hosts on the same machine managed by apache; some of them need to use tomcat (have jsp pages and servlets...) if i set a server.xml of tomcat with several hosts, and every host has ist context --> it's ok ( but tomcat documentation says "Please note that for tomcat 5, unlike tomcat 4.x, it is NOT recommended to place elements directly in the server.xml file") if i try to move the context informations in a .xml file in a $CATALINA_HOME/conf/[enginename]/[hostname]/ directory, tomcat cannot serve anything (it acts as he cannot find files in docBase); - which is the right configuration ? - is it necessary to define different host in server.xml ?(--> so, when i add a new host i need to restart apache and tomcat...) thanks in advance here is the configuration that works.. HTTPD.CONF .... Include /var/jakarta-tomcat-5.5.9/conf/mod_jk.conf MOD_JK.CONF ..... NameVirtualHost xx.yy.zz.kk:80 DocumentRoot /var/www/html ServerName web.ccc.com DirectoryIndex index.htm index.html index.jsp ServerName www.aaa.com DocumentRoot /var/www/html/aaa JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 DirectoryIndex index.htm index.html ServerName www.bbb.com DocumentRoot /var/jakarta-tomcat-5.5.9/webapps/bbb JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 SERVER.XML .... ---------------------------------------------------------------------------------------- This for example, don't work setting : SERVER.XML .... appBase = /var/www/html/aaa (or similar... ) the file : $CATALINA_HOME/conf/Catalina/www.aaa.com/aaa.xml --------------------------------- Yahoo! Mail: gratis 1GB per i messaggi, antispam, antivirus, POP3 --0-425775852-1128678796=:61859--