Apache Tomcat and Ruby

We have Ruby Rails and Apache tomcat servers running on samw windows server. When the Apache Tomcat application is installed on its own, it works fine, but when the ruby ​​application is installed, the Apace Tomcat application stops working. We need both applications to run on the same server. Please help. An application running on Tomcat displays login screens and allows users to log in. And then the rest of things fail. An application running on Ruby is just fine. In addition, we installed Apace Tomcat and then Ruby on this server. therefore, there is a good chance Ruby has taken the Tomcat port. But how to determine the overlap?

+3
source share
1 answer

You are probably both trying to bind to port 80. Whatever server you use for rails (the passenger through the nginx / apache HTTP server, nginx + thin / mongrel, etc.) is tied to port 80, then tomcat tries to do the same and cannot.

If you are using nginx, I would configure tomcat to run on 8080 and return tomcat HTTP requests based on the host name of the URL part.

You can do this too with the apache http server with mod_proxy.

+3
source

Source: https://habr.com/ru/post/1732232/


All Articles