File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 12759
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.
Consider Paul's rocket mass heater.
subject: running Apache and Tomcat together
Similar Threads
Yet another Tomcat port question
Trying to set http://localhost to load one tomcat project?
Deploy war files in Apache
Help needed on SSL configuration for Apache HTTP server 2.2.10 and Tomcat 5.5.9
How to setup the same application (multiple instances) running on different ports under Tomcat 6.0.x