Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 463631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:11:39+00:00 2026-05-12T23:11:39+00:00

I haven’t been able to figure out how to deploy multiple grails applications with

  • 0

I haven’t been able to figure out how to deploy multiple grails applications with Apache/Tomcat where a virtual host is mapped to each grails app

I can get it so that

http://virtualhost1.example.com/myGrailsApplication-0.1/ 

works, but what I want is for

http://virtualhost1.example.com/

to go directly to my application. A lot of tutorial sites on the web just have you make your web app the “ROOT” one, but that won’t work in a mutiple grails-app virtual host environment.

I tried using the

<Host name="virtualhost1.example.com" ...> </Host>

tags in the tomcat/conf/server.xml file, but it didn’t seem to do anything (and, yes, I restarted tomcat each time I changed it.)

I also tried everything I could think of in my apache config file for the virtual host, and couldn’t get it to work.

So, how can I get rid of the app name in the URL when I have multiple grails webapps, virtual hosts, and I don’t want my webapp to be “ROOT”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T23:11:40+00:00Added an answer on May 12, 2026 at 11:11 pm

    I’m assuming that you are using mod_jk to connect Apache & Tomcat. If so, You will have to have to configure virtual hosting within Tomcat as well as Apache (multiple <Host> declarations in your conf/server.xml)

    This basically means that you’ll have two <Host ...> declarations within conf/server.xml. They will have different names, and appBase, but you will still have to name the war ROOT.war

    The example that they gave was:

    <Engine name="Catalina" defaultHost="ren">
        <Host name="ren"    appBase="renapps"/>
        <Host name="stimpy" appBase="stimpyapps"/>
    </Engine>
    

    After you’ve configured the DNS of your virtual ‘<host>s'(much like Apache) you’ll have to put your ROOT.war(s) into separate folders {renapps,stimpyapps} instead of the default ‘webapps’ folder

    This method works, but there is another method using mod_proxy instead of mod_jk. I’m not that familiar with mod_proxy but basically you would have the connector handle translating the root context to the actual context. So after its configured it would proxy & forward requests sent to http://virtualhost1.example.com/ to the right context within Tomcat (/myGrailsApplication-0.1/)

    Let us know what you find! Anyone else do this with mod_proxy?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I haven't been able to find a very good way of getting 10 random
Haven't fired up reflector to look at the difference but would one expect to
Haven't done ASP.NET development since VS 2003, so I'd like to save some time
Haven't seen many Geneva related questions yet, I have posted this question in the
I haven't used C++ since college. Even though I've wanted to I haven't needed
I haven't touched sharepoint in years. If I want to setup a development environment
I haven't completely understood, how to use sigprocmask() . Particularly, how the set and
I haven't programmed games for about 10 years (My last experience was DJGPP +
I haven't seen any questions relating to GNU autoconf/automake builds, but I'm hoping at
I haven't done a lot of .NET programming, but I've examined a few of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.