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 [EMAIL PROTECTED]
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 [EMAIL PROTECTED]  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 <[EMAIL PROTECTED]>; 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 [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> Reply-To: [EMAIL PROTECTED]
> list-help: <mailto:[EMAIL PROTECTED]>
> list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> list-post: <mailto:[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> 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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: RE: virtual hosts on different ports
> Date: Tue, 10 Apr 2001 11:48:33 -0700
> Keywords: MailingLists
> Message-ID: <[EMAIL PROTECTED]>
> 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:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 11:30 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: virtual hosts on different ports
> >
> >
> > you can create different contexts that listen on different ports
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, April 10, 2001 1:22 PM
> > To: [EMAIL PROTECTED]
> > 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
> 


Reply via email to