title: Possible to map subdomains to webapps in a standard Java app server?
body: <p>If you have two webapps, foo and bar, in a J2EE app server like Tomcat, the normal way to distinguish them is like this:</p>
  
  <pre><code>domain.com/foo
  domain.com/bar
  </code></pre>
  
  <p>I'd like to do this instead:</p>
  
  <pre><code>foo.domain.com
  bar.domain.com
  </code></pre>
  
  <p>Is this possible?</p>