> From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
> how can I bind each ipaddress to port 80?? And how to assign 
> a ipaddress to an application?

1. On paper, allocate an IP address range to your applications.
Remember that if these apps are going to be accessed externally, you'll
need a separate *external* IP for each app.  Let's say that you have 5
apps, and have allocated 172.20.1.241 to .245 to them.

2. Configure your Tomcat server machine's network interface(s) to bind
to all of these addresses.  Details vary by OS.  Ping the IPs and check
that the server responds to each one (firewall permitting).

3. Configure your DNS so that www.application1.com points to the IP
172.20.1.241, application2.com to ...242, and so on.  Ping the names and
check that the server responds to each one (firewall permitting).

4. Add an 'address' attribute to each instance's connector in
conf/server.xml (see, for example,
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/http.html ).
Make sure it matches the application.  So for application 1's instance,
add 'address="172.20.1.241"' to the connector.  Start the instances.
Use a browser to check that each application responds on its old port
(9000, 9100 etc) but only on the IP address that you've assigned to it.

5. Stop the instances.  Modify the 'port' attribute of each connector to
80.  Start the instances.  They should now all start on port 80; verify
that you can connect to application 1 simply by typing
http://www.application1.com .

Note that the apps will no longer respond on localhost - they will
*only* be available on their designated IP address.

                - Peter

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

Reply via email to