Tocat webapp listening on different port

View: New views
3 Messages — Rating Filter:   Alert me  

Tocat webapp listening on different port

by Sergio Arrighi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello to everyone,

I'm pretty new with tomcat and I've a newbie question.
Is it possible to have a tomcat webapp listening on a port different
from the port which is in use by the server itself??
Example:
I have a tomcat server listening on port 80 and I want the 'A' webapp to
be listening on port 10000.

Is this possible? If so could someone give me hints or pointers?
Thanks,

Sergio

--
        *I.M.I.N. Holding s.r.l.*
Sergio Arrighi
sergio.arrighi@... <mailto:sergio.arrighi@...>
Cell. 3455805121

Vicolo Molino, 2
21052 Busto Arsizio
Varese
Tel. +39 0331324679
Fax. +39 0331324678
www.iminholding.com


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Tocat webapp listening on different port

by Tobias Crefeld-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Am Wed, 04 Nov 2009 09:43:54 +0100
schrieb Sergio Arrighi <sergio.arrighi@...>:

> Is it possible to have a tomcat webapp listening on a port different
> from the port which is in use by the server itself??
> Example:
> I have a tomcat server listening on port 80 and I want the 'A' webapp
> to be listening on port 10000.

AFAIK it is not possible to setup 2 http-connectors for one tomcat, but
you can install another tomcat in its own JVM with other port- and/or
IP-address-assignments with a coyote-connector listening to Port 10000.

Or you install a proxy or Apache2 with mod_proxy_ajp or mod_proxy_http
to offer an access via port 80 to tomcat and change tomcats
coyote-connector to Port 10000. Of course this will only give you two
different ways to connect to the same tomcat (and both applications)
but you can control access by using valves in tomcat and
ProxyPass-settings in Apache2.


RU,
 Tobias.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Tocat webapp listening on different port

by Ognjen Blagojevic-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tobias Crefeld wrote:
> schrieb Sergio Arrighi <sergio.arrighi@...>:
>> Is it possible to have a tomcat webapp listening on a port different
>> from the port which is in use by the server itself??
>
> AFAIK it is not possible to setup 2 http-connectors for one tomcat, but
> you can install another tomcat in its own JVM with other port- and/or
> IP-address-assignments with a coyote-connector listening to Port 10000.

It is possible also to do it with two connectors. Just edit the
server.xml to have to services (say, Catalina80, and Catalina10000),
with appropriate Connectors on ports 80 and 10000, appropriate Engines
and appropriate Hosts.

-Ognjen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...