Cruisecontrol and Tomcat on port 80?
June 8, 2009 4:19 PM
Subscribe
Server filter: How can I get Cruisecontrol and Tomcat on the same port? (Port 80?)
By default, CruiseControl and Tomcat need to use different ports to run on the same computer. However, the way things are set up for my server, they don't need to run at the same time. So, is it possible to have them both on the same port, but only activated when the user types in a certain link? For example:
http://localhost --> Would lead to Tomcat
http://localhost/cruisecontrol --> Leads to the CruiseControl dashboard.
When CruiseControl is accessed, Tomcat wouldn't be active.
My goal is to get them both running on the same port, but switching off when needed. I was told that this is possible and that it had been done before, but I wasn't given any details. Does anyone have any insight or possible alternatives?
posted by nikkorizz to technology (6 comments total)
A more crude but maybe simpler solution might be to run one on port 80 (say tomcat) and the other on some other port, say 81, then stick in a redirect page and call it http://localhost/cruisecontrol/index.html. That page can then redirect to http://localhost:81/cruisecontrol. The user's browser will then show the new url with the :81 in it. If that's ok with you, I think this second option would be easier to get running.
posted by jclovebrew at 4:52 PM on June 8