httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan_Mit...@Notes.YMP.GOV
Subject Re: [users@httpd] Tomcat and Apache on the same port?
Date Fri, 28 Sep 2007 15:41:52 GMT
Tony,

The only way to have two services use/listen on the same port is to use 
two different IP addresses, one for each.  Then each can listen on port 
80.

A possible, very high effort, alternative would be to write a program that 
would sit in front of both apache and tomcat, that could examine the 
incoming packets and determine to route it to apache or tomcat based on 
the packet content.  I'm talking a very complicated program here.

Apache proxying requests through to tomcat is not that expensive overhead 
wise.  That would really be your best solution.  Look at the proxy_ajp 
module in apache 2.2

Dan



Please respond to users@httpd.apache.org

To:     Tomcat Users Group <users@tomcat.apache.org>
cc:     Apache Mailing List <users@httpd.apache.org> (bcc: Dan 
Mitton/YD/RWDOE)
Subject:        [users@httpd] Tomcat and Apache on the same port?
LSN: Not Relevant
User Filed as: Not a Record

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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org





---------------------------------------------------------------------
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message