RE: question about multiple instances and multiple domains

2005-03-23 Thread Bedrijven.nl
do you have a good documentation set/link of how to do this??
I mean to install Apache and using JK or mod_proxy incombination of Tomcat.

maarten



-Oorspronkelijk bericht-
Van: Tim Funk [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 23, 2005 1:12 PM
Aan: Tomcat Users List
Onderwerp: Re: question about multiple instances and multiple domains


You have 2 ways (actually more, but I'm gonna suggest 2). Both involve
running apache on port 80.

1) Run apache on port 80 and use JK to route the requests to the
approrpriate
tomcat. This involves some more config tweaks for your existing tomcat
instance.

2) Run apache on port 80 and use mod_proxy to port back the the ip:port.

-Tim




Bedrijven.nl wrote:

> Hi all,
>
> I have successfully set up multiple tc instances on one server on
differtent
> ports. so application 1 runs on 9100, application2 at 9110 and so on.
> It works fine when i type directly the portnumber after the ipaddress.
What
> I want now is when someone is entering a domainname it goes directly to
the
> appropiate application. e.g. www.application1.com goes to application 1
runs
> on 9100 and so on. How can I achieve this?? The second thing is that we
> closed the ports 9100 etc in the firewall so is it possible to go to the
> application on a different port when a http request on port 80 is coming
in?
>

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


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



RE: question about multiple instances and multiple domains

2005-03-23 Thread Peter Crowther
> 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]



RE: question about multiple instances and multiple domains

2005-03-23 Thread Bedrijven.nl
how can I bind each ipaddress to port 80?? And how to assign a ipaddress to
an application?

Maarten

-Oorspronkelijk bericht-
Van: Peter Crowther [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 23, 2005 1:17 PM
Aan: Tomcat Users List
Onderwerp: RE: question about multiple instances and multiple domains


> From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
> And what if i don't want to use apache??

Alternative approaches could include allocating each application its own
IP address, ensuring that each Tomcat instance binds to port 80 on its
own IP address.  This assumes you have sufficient IP addresses
available.  Or, as Tim says, you need an alternative proxy.

- Peter

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

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

RE: question about multiple instances and multiple domains

2005-03-23 Thread Peter Crowther
> From: Bedrijven.nl [mailto:[EMAIL PROTECTED] 
> And what if i don't want to use apache??

Alternative approaches could include allocating each application its own
IP address, ensuring that each Tomcat instance binds to port 80 on its
own IP address.  This assumes you have sufficient IP addresses
available.  Or, as Tim says, you need an alternative proxy.

- Peter

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



Re: question about multiple instances and multiple domains

2005-03-23 Thread Tim Funk
Then you need another hardware (or software) solution which can proxy http 
requests.

-Tim
Bedrijven.nl wrote:
And what if i don't want to use apache??
Maarten
-Oorspronkelijk bericht-
Van: Tim Funk [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 23, 2005 1:12 PM
Aan: Tomcat Users List
Onderwerp: Re: question about multiple instances and multiple domains
You have 2 ways (actually more, but I'm gonna suggest 2). Both involve
running apache on port 80.
1) Run apache on port 80 and use JK to route the requests to the
approrpriate
tomcat. This involves some more config tweaks for your existing tomcat
instance.
2) Run apache on port 80 and use mod_proxy to port back the the ip:port.
-Tim

Bedrijven.nl wrote:

Hi all,
I have successfully set up multiple tc instances on one server on
differtent
ports. so application 1 runs on 9100, application2 at 9110 and so on.
It works fine when i type directly the portnumber after the ipaddress.
What
I want now is when someone is entering a domainname it goes directly to
the
appropiate application. e.g. www.application1.com goes to application 1
runs
on 9100 and so on. How can I achieve this?? The second thing is that we
closed the ports 9100 etc in the firewall so is it possible to go to the
application on a different port when a http request on port 80 is coming
in?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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


RE: question about multiple instances and multiple domains

2005-03-23 Thread Bedrijven.nl
And what if i don't want to use apache??

Maarten

-Oorspronkelijk bericht-
Van: Tim Funk [mailto:[EMAIL PROTECTED]
Verzonden: Wednesday, March 23, 2005 1:12 PM
Aan: Tomcat Users List
Onderwerp: Re: question about multiple instances and multiple domains


You have 2 ways (actually more, but I'm gonna suggest 2). Both involve
running apache on port 80.

1) Run apache on port 80 and use JK to route the requests to the
approrpriate
tomcat. This involves some more config tweaks for your existing tomcat
instance.

2) Run apache on port 80 and use mod_proxy to port back the the ip:port.

-Tim




Bedrijven.nl wrote:

> Hi all,
>
> I have successfully set up multiple tc instances on one server on
differtent
> ports. so application 1 runs on 9100, application2 at 9110 and so on.
> It works fine when i type directly the portnumber after the ipaddress.
What
> I want now is when someone is entering a domainname it goes directly to
the
> appropiate application. e.g. www.application1.com goes to application 1
runs
> on 9100 and so on. How can I achieve this?? The second thing is that we
> closed the ports 9100 etc in the firewall so is it possible to go to the
> application on a different port when a http request on port 80 is coming
in?
>

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


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



Re: question about multiple instances and multiple domains

2005-03-23 Thread Tim Funk
You have 2 ways (actually more, but I'm gonna suggest 2). Both involve 
running apache on port 80.

1) Run apache on port 80 and use JK to route the requests to the approrpriate 
tomcat. This involves some more config tweaks for your existing tomcat instance.

2) Run apache on port 80 and use mod_proxy to port back the the ip:port.
-Tim

Bedrijven.nl wrote:
Hi all,
I have successfully set up multiple tc instances on one server on differtent
ports. so application 1 runs on 9100, application2 at 9110 and so on.
It works fine when i type directly the portnumber after the ipaddress. What
I want now is when someone is entering a domainname it goes directly to the
appropiate application. e.g. www.application1.com goes to application 1 runs
on 9100 and so on. How can I achieve this?? The second thing is that we
closed the ports 9100 etc in the firewall so is it possible to go to the
application on a different port when a http request on port 80 is coming in?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


question about multiple instances and multiple domains

2005-03-23 Thread Bedrijven.nl
Hi all,

I have successfully set up multiple tc instances on one server on differtent
ports. so application 1 runs on 9100, application2 at 9110 and so on.
It works fine when i type directly the portnumber after the ipaddress. What
I want now is when someone is entering a domainname it goes directly to the
appropiate application. e.g. www.application1.com goes to application 1 runs
on 9100 and so on. How can I achieve this?? The second thing is that we
closed the ports 9100 etc in the firewall so is it possible to go to the
application on a different port when a http request on port 80 is coming in?

Maarten


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