Caldarale, Charles R wrote:
From: Szabolcs Márton [mailto:[EMAIL PROTECTED]
Subject: different context on different ports, but one tomcat
I have ONE instance of Tomcat with 3 different webapps (context)
instance#1: accept connection only on port 80 from anywhere
instance#2: accept connections only on https port from anywhere
instance#3 accept connections on port 7080 but only from localhost
You didn't bother to tell us what level of Tomcat you're using, but this should
be a starting point for the current version:
http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Address%20Filter
this would be incorrect, since you've already accepted the connection
and parsed the HTTP request.
Matthias Reich posted the correct solution, just use multiple <Service>
containers
Filip
You will probably have to extend the above filter to add checks for port
numbers and secure connections.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you received
this in error, please contact the sender and delete the e-mail and its
attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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]