> -----Message d'origine----- > De : Tony Anecito [mailto:adanecito@xxxxxxxxx] > Envoyé : vendredi 28 septembre 2007 17:34 > À : Tomcat Users Group > Cc : Apache Mailing List > Objet : Tomcat and Apache on the same port? > > 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 Hello Tony, Basically, I had the same problem as you. I wanted the whole URL handled by Apache or Tomcat or Jboss was on port 80. I created a virtualhost by application and used mod_proxy on only 1 IP ;). For example : Virtualhost foobar1:80 -> regular php website on port 80 Virtualhost foobar2:80 -> mod_proxy, redirection to port 8080 with a Tomcat application Virtualhost foobar3:80 -> mod_proxy, redirection to port 8080 with another Tomcat application Virtualhost foobar4:80 -> mod_proxy, redirection to port 8081 with a Jboss application If you need extra information, do not hesitate to contact me. Johan "Les informations contenues dans ce message électronique peuvent être de nature confidentielles et soumises à une obligation de secret. Elles sont destinées à l'usage exclusif du réel destinataire. Si vous n'êtes pas le réel destinataire, ou si vous recevez ce message par erreur, merci de le détruire immédiatement et de le notifier à son émetteur." "The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please delete it and immediately notify the sender." --------------------------------------------------------------------- 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