Configuring Apache tomcat for RoR

Posted on 2007-10-05
Last Modified: 2013-12-02
Hi experts,

I am planning to develop Ruby on Rails project and I need to use tomcat since we are running a few web apps on linux box by using tomcat. (However, development environment will be windows.) I know there is instantRails that comes with apache server, but for this reason, I need to configure existing tomcat server to suit my need. I found a few sites, but they werent much in detail. Has anyone had this experience?

Question by:dkim18
    LVL 13

    Assisted Solution

    If you have Apache running, you can set up a proxy to Tomcat (with mod_proxy). Using some regular expressions you can define what traffic is handled by Tomcat.
    LVL 13

    Expert Comment

    And to be clear, I mean Apache HTTPD, running in front of Jakarta Tomcat and RoR.
    LVL 1

    Accepted Solution

    I would develop with Netbeans IDE using JRuby as interpreter:

    While development it is sufficient to install the mongrel gem and choose it as server, this is fast enough.

    In production set up mod_proxy_balancer or mod_jk to connect to tomcat, I prefer mod_proxy_balancer:

    To pack your Ruby on Rails application as a WAR file deployable on Tomcat, just use warbler:

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    -Xmx and -Xms are the two JVM options often used to tune JVM heap size.   Here are some common mistakes made when using them:   Assume BigApp is a java class file for the below examples. 1.         Missing m, M, g or G at the end …
    Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    14 Experts available now in Live!

    Get 1:1 Help Now