Modify your Http/1.1 Connector and add an address attribute to specify
which IP address to listen on.  By default, the Connector listens on ALL
IP addresses.


<Connector class="org.apache.catalina.connector.http.HttpConnector"
address="127.0.0.1" />

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/http11.html

>From what I can tell, you can't define a webapp (defined as a Context in
the server.xml) as running on a specific address.  What you can do is
use multiple Host entries to define Hosts that pick up different DNS
Names.


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html


<Host name="www.site1.com" >
        <Context path="/webapp1" docBase="webapp1" />
</Host>

<Host name="www.site2.com" >
        <Context path="/webapp2" docBase="webapp2" />
</Host>



- Andrew

> -----Original Message-----
> From: neal [mailto:[EMAIL PROTECTED]] 
> Sent: Sunday, August 18, 2002 3:19 PM
> To: Tomcat Users List
> Subject: Tomcat - IP binding for multiple web apps
> 
> 
> I would like to run multiple web applications from the same 
> instance of tomcat.  I have set this up in my dev 
> environment, no problem.
> 
> The problem is this:
> 
> I can not figure out how to bind an IP address (one seperate 
> IP per web app) to each of these web apps.  Actually, I 
> haven't even seen in the docs how to bing a single IP to 
> Tomcat either????  DO I need to usa Appche (via Warp) to do 
> this or something?
> 
> Note:
> 
> I am currently running standalone Tomcat 4.0.3, on Win2k, 
> profesisonal.
> 
> 
> Thanks.
> Neal
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to