*
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
Author

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?
thanks,
Alex


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
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
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.
Bill
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: running Apache and Tomcat together
 
Similar Threads
How to setup the same application (multiple instances) running on different ports under Tomcat 6.0.x
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