The moose likes Tomcat and the fly likes running Apache and Tomcat together Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "running Apache and Tomcat together" Watch "running Apache and Tomcat together" New topic

running Apache and Tomcat together

Alex Kravets
Ranch Hand

Joined: Jan 24, 2001
Posts: 476
I am running Apache 2.0 and Tomcat 5. Right now Apache is listening to port 82 and Tomcat to port 8080. If I want both of them to listen to port 82 so that I can run application from http://localhost:82/myApp/index.jsp should where should I change the port setting in Tomcat?

All right brain, you don't like me and I don't like you, but let's just do this one thing so I can get back to killing you with beer.<br /> <br />- Homer Simpson
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13036
The conf/server.xml file defines which ports Tomcat listens to.
However, you can't have two programs listening to the same port - whichever is started first gets to keep it.
I agree. Here's the link:
subject: running Apache and Tomcat together
It's not a secret anymore!