There's two things you can do, but first...You can not run two programs on the same IP address on the same port for the same protocol. If this were possible there's no way to know which program handles a request.
You could use two different host names with two different IP addresses on the same server. All requests that should go to tomcat goes to one host name and others go to another host name and both can use port 80 on their respective IP addresses.
Another option is to run the servers on different ports then use a layer 7 switch to redirect them by URL.
-- Michael Conlen On Sep 28, 2007, at 11:33 AM, Tony Anecito wrote:
Hi All, Is it possible to run Tomcat and Apache on the same port? What I want to do is have my website running on Apache web server or port 80 and also have Tomcat running on port 80. That way my web service requests do not need to go through Apache web server where they are redirected to Tomcat. I am trying to avoid web service requests going to a different port on the client side and getting stopped by a proxy but perhaps that does not stop http requests going another site on port say 81? Thanks, -Tony______________________________________________________________________ ______________Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/ ---------------------------------------------------------------------The official User-To-User support forum of the Apache HTTP Server Project.See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx