title: Deploying multiple grails applications with Apache/Tomcat + Virtual Hosts
body: <p>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</p>
  
  <p>I can get it so that</p>
  
  <pre><code>http://virtualhost1.example.com/myGrailsApplication-0.1/ 
  </code></pre>
  
  <p>works, but what I want is for</p>
  
  <pre><code>http://virtualhost1.example.com/
  </code></pre>
  
  <p>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.</p>
  
  <p>I tried using the</p>
  
  <pre><code>&lt;Host name="virtualhost1.example.com" ...&gt; &lt;/Host&gt;
  </code></pre>
  
  <p>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.)</p>
  
  <p>I also tried everything I could think of in my apache config file for the virtual host, and couldn't get it to work.</p>
  
  <p>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"?</p>