tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <da...@tecnet1.jcte.jcs.mil>
Subject [ANS] RE: virtual hosts on different ports
Date Wed, 11 Apr 2001 09:59:30 GMT
Bill,

  What you stated is what I'm trying to do. I have a single server, in which I need to utiltize
ports 8601 and 443.  But, I want each port to examine a certain 'context'.  Right now I'm
manily concerned about 8601 for our developemt team.
Here is my entry from the server.xml and httpsd.conf file.  But, when I try to connect to
the pages I receive a 404 error and in the jasper log file I notice TOMCAT is trying to excute
the code from $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes directory.  Can you give me a clue
on what I'm doing wrong.

 Thanks a bunch.

server.xml

<Host Name="140.229.33.200:8601">
            <Context path="/paxAIP"
             docBase="/tecnet/WWW/NetScape/Alpha/paxAIP"
             crossContext="true"
             reloadable="true"
             trusted="false"
             debug="0"/>
        </Host>

httpsd

#  General setup for the virtual host
DocumentRoot "/tecnet/WWW/NetScape/Alpha"
ServerName tecnet1.jcte.jcs.mil
ServerAdmin tecadmin@cs.clemson.edu
ErrorLog logs/tecnet8601_error_log
TransferLog logs/tecnet8601_access_log
SetEnvIf Request_URI wwwAuthenticatedEntrance.cgi$ login
CustomLog logs/agent_log loginagent env=login
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13

Dave


> From tomcat-user-return-30525-davea=tecnet1.jcte.jcs.mil@jakarta.apache.org  Tue Apr
10 14:50:35 2001
> Received: from otto.nawcad.navy.mil (otto-internal.nawcad.navy.mil [192.58.199.212])
> 	by tecnet1.jcte.jcs.mil (8.9.3/8.9.3) with ESMTP id OAA19625
> 	for <davea@tecnet1.jcte.jcs.mil>; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
> Received: by otto.nawcad.navy.mil; id OAA20256; Tue, 10 Apr 2001 14:50:34 -0400 (EDT)
> Received: from unknown(64.208.42.41) by otto.nawcad.navy.mil via smap (V4.2)
> 	id xma019868; Tue, 10 Apr 01 14:50:27 -0400
> Received: (qmail 45293 invoked by uid 500); 10 Apr 2001 18:49:36 -0000
> Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm
> Precedence: bulk
> Reply-To: tomcat-user@jakarta.apache.org
> list-help: <mailto:tomcat-user-help@jakarta.apache.org>
> list-unsubscribe: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> list-post: <mailto:tomcat-user@jakarta.apache.org>
> Delivered-To: mailing list tomcat-user@jakarta.apache.org
> Received: (qmail 45276 invoked from network); 10 Apr 2001 18:49:36 -0000
> Received: from unknown (HELO jnm-main.pictureiq.com) (63.127.69.253)
>   by h31.sny.collab.net with SMTP; 10 Apr 2001 18:49:36 -0000
> Received: from ecto1 (jnm0-215 [192.168.0.215]) by jnm-main.pictureiq.com with SMTP (Microsoft
Exchange Internet Mail Service Version 5.5.2653.13)
> 	id HMS1GX6X; Tue, 10 Apr 2001 11:54:00 -0700
> From: "William Wishon" <bill.wishon@pictureiq.com>
> To: <tomcat-user@jakarta.apache.org>
> Subject: RE: virtual hosts on different ports
> Date: Tue, 10 Apr 2001 11:48:33 -0700
> Keywords: MailingLists
> Message-ID: <NEBBIJMLLGCLKCJJJLEAAENMDAAA.bill.wishon@pictureiq.com>
> MIME-Version: 1.0
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3 (Normal)
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
> In-Reply-To: <B9D7EB6E06F0D1119AA800A0C9C74B4A2731C7@STR_CONNECT2>
> Importance: Normal
> X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N
> 
> You can configure tomcat to listen on multiple ports, but you cannot
> restrict particular contexts to particular ports.  If you setup tomcat to
> listen on ports 8080 and 8082 then all of your contexts become available on
> both ports.  Using virtual hosts you can restrict particular contexts to
> particular virtual hosts, but all virtual hosts are available on all ports.
> 
> That's what I found when I did some research and code archeology a little
> while ago. I wanted to separate two contexts by restricting the first
> context to the first port, and assigning the second context to the second
> port.
> 
> -Bill
> 
> > -----Original Message-----
> > From: Chris Andreou [mailto:chrisa@strllc.com]
> > Sent: Tuesday, April 10, 2001 11:30 AM
> > To: 'tomcat-user@jakarta.apache.org'
> > Subject: RE: virtual hosts on different ports
> >
> >
> > you can create different contexts that listen on different ports
> >
> >
> > -----Original Message-----
> > From: davea@tecnet1.jcte.jcs.mil [mailto:davea@tecnet1.jcte.jcs.mil]
> > Sent: Tuesday, April 10, 2001 1:22 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: virtual hosts on different ports
> >
> >
> > Hi,
> >
> >  Can I configure TOMCAT virutal hosts on different ports, not ip
> > addresses?
> > I seen this question asked in the archives but there was no responses.
> >
> > Dave
> 



Mime
View raw message