Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 56763 invoked from network); 17 Jan 2003 15:18:47 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 17 Jan 2003 15:18:47 -0000 Received: (qmail 29340 invoked by uid 97); 17 Jan 2003 14:33:15 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 29235 invoked by uid 97); 17 Jan 2003 14:33:14 -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 29166 invoked by uid 98); 17 Jan 2003 14:33:13 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <83F0258A9996D311B14200A0C98F173602F22C52@aas-internet.aas.com> From: "Turner, John" To: 'Tomcat Users List' Subject: RE: Difficulties with Virtual Host in the Apache + Tomcat Date: Fri, 17 Jan 2003 09:31:39 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Try=20 JkMount /*.jsp ajp13 instead of=20 JkMount /web/ged/*.jsp ajp13 for www.ged.ufu.br. Also, you can 4 (or more) virtual hosts in Tomcat, just setup four Host elements, each with the appropriate name and/or alias. John > -----Original Message----- > From: "Sebasti=E3o Carlos Santos" [mailto:scarlosantos@bol.com.br] > Sent: Friday, January 17, 2003 7:59 AM > To: tomcat-user@jakarta.apache.org > Subject: Difficulties with Virtual Host in the Apache + Tomcat >=20 >=20 > There are some days installed a servant web with Apache=20 > 1.3.27 and Tomcat 4.1.18 > under Suse Linux Professional 7.2, however I am facing problems =20 > in the configuration and integration of the virtual hosts of=20 > the Apache for the tomcat. =20 > In the end of this e-mail it is some fragments of the=20 > configuration files =20 > that I am using, as for instance http.conf,=20 > workers.properties and server.xml > When I try to access the address http://www.ged.ufu.br that=20 > has the file index.jsp, =20 > that I put soon lower, I receive the following text <%=20 > out.println ("aaaaaaaaaaaa");%> =20 > in the screen of the browser, what shows that the things are=20 > not working how they would owe. > What am missing? > Another question would be: I will have four virtual hosts in=20 > the Apache, > logically I will have to have the same ones four configured=20 > in Tomcat. Is it possible? > I thank the help in advance. >=20 > File index.jsp >=20 > root@ged2:/web/ged > cat index.jsp > <%out.println("aaaaaaaaaaaaaaaa");%> >=20 > //************************************************************ > ***************** > Fragment of the file httpd.conf (Apache 1.3.27) >=20 > > LoadModule jk_module libexec/mod_jk.so > >=20 > Include /usr/local/jakarta-tomcat-4.1.18/conf/auto/mod_jk.conf >=20 > AddModule mod_jk.c >=20 > ServerName ged2.ufu.br > DocumentRoot "/web" >=20 > > . > . > . > >=20 > > DirectoryIndex index.html index.htm index.jsp > >=20 > NameVirtualHost 200.131.195.5 >=20 >=20 > > ServerAdmin ciadd@ufu.br > DocumentRoot /web/ged/ > ServerName ged2.ufu.br > ServerAlias www.ged.ufu.br > ErrorLog /web/ged/logs/apache_error_log > CustomLog /web/ged/logs/apache_access_log common > JkMount /web/ged/*.jsp ajp13 > >=20 > > JkWorkersFile=20 > "/usr/local/jakarta-tomcat-4.1.18/conf/jk/workers.properties" > JkLogFile "/usr/local/jakarta-tomcat-4.1.18/logs/mod_jk.log" >=20 > JkLogLevel debug >=20 > JkMount /examples ajp13 > JkMount /examples/* ajp13 > > //************************************************************ > ************ > File workers.properties >=20 > workers.CATALINA_HOME=3D/usr/local/jakarta-tomcat-4.1.18 > workers.java_home=3D$(JAVA_HOME) > ps=3D/ >=20 > worker.list=3Dajp13 > worker.ajp13.port=3D8009 > worker.ajp13.host=3Dlocalhost > worker.ajp13.type=3Dajp13 > worker.ajp13.lbfactor=3D1 >=20 > worker.loadbalancer.type=3Dlb > worker.loadbalancer.balanced_workers=3Dajp13 > worker.inprocess.type=3Djni > worker.inprocess.cmd_line=3Dstart > worker.inprocess.jvm_lib=3D$(workers.java_home)$(ps)jre$(ps)lib$ > (ps)i386$(ps)server$(ps)libjvm.so > worker.inprocess.stdout=3D$(workers.CATALINA_HOME)$(ps)logs$(ps) > inprocess.stdout > worker.inprocess.stderr=3D$(workers.CATALINA_HOME)$(ps)logs$(ps) > inprocess.stderr > //************************************************************ > ************ > Fragment of the file server.xml (Tomcat 4.1.18) >=20 > unpackWARs=3D"true" autoDeploy=3D"true"> > www.ged.ufu.br > directory=3D"/web/ged/logs" prefix=3D"tomcat_ged." > suffix=3D".log" timestamp=3D"true"/> > reloadable=3D"true" crossContext=3D"true"/> > > //************************************************************ > ************ > Directories of the application >=20 > Filesystem 1k-blocks Used Available Use% Mounted on > /dev/hda8 3261056 32896 3228160 2% /web >=20 > root@ged2:/web/servidor > tree /web/ged/ > /web/ged/ > |-- index.jsp > |-- logs > | |-- apache_access_log > | |-- apache_error_log > | `-- tomcat_ged.2003-01-17.log > `-- test > `-- index.jsp >=20 > 2 directories, 5 files > Sebasti=E3o Carlos Santos > Oracle Database Administrator > Universidade Federal de Uberl=E2ndia - UFU > Gratifica=E7=E3o de Est=EDmulo =E0 Doc=EAncia - GED >=20 >=20 -- To unsubscribe, e-mail: For additional commands, e-mail: