Re: two application on different port with restriction

2006-08-21 Thread tamri

I have no Apache, is there another way to run one applicatio 2 virtual port?

so, I have anothr question: If i have 2 application and I want to run this
eachone  different post independently each other,so that , application1 runs
on 8080 port, application2 runs on port 8081, with restriction that  
application1 can't run on port 8081, and on the contrary, application2 can't
run on 8080.
how can I do? enyone can help me?

MikoĊ‚aj Rydzewski wrote:
> 
> tamri wrote:
>> I have  one application and use tomcat 5.0.
>> I want to run this application on different port , on 8080 and  8082
>> independently each other.
>> I configure in tomcat this two connector with ports 8080 and 8082.
>> how can I configure tomcat  to run one application on different ports
>> indepedently.
>>   
> I'd run one application inside Tomcat, and several virtual hosts inside 
> Apache with mod_proxy/mod_jk pointing to one Tomcat instance. One could 
> also use ip-forwarding.
> 
> 
> -- 
> Mikolaj Rydzewski <[EMAIL PROTECTED]>
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/one-application-on-different-port-tf2140515.html#a5911636
Sent from the Tomcat - User forum at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: two application on different port with restriction

2006-08-21 Thread Hassan Schroeder

On 8/21/06, tamri <[EMAIL PROTECTED]> wrote:


so, I have anothr question: If i have 2 application and I want to run this
eachone  different post independently each other,so that , application1 runs
on 8080 port, application2 runs on port 8081, with restriction that
application1 can't run on port 8081, and on the contrary, application2 can't
run on 8080.
how can I do? enyone can help me?


Reading the Fine Manual would be a good way to help yourself :-)

quoting:
A Service element represents the combination of one or  more
Connector components that share a single Engine component for
 processing incoming requests.

Hence you could easily configure two Services, each with a connector
for one of your target ports.

Alternatively, you could use Filters to prevent each app running on an
"unauthorized" port.

FWIW!
--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]