title: Single java web application, multi static files
body: <p>I've made a very simple Java web application for Landing pages management. This application can generate some reports and get form submission data from static HTML files by Ajax (I do not generate any HTML dynamically). Each landing page is totally different that the others (different design, theme, ...) but they all are just static files. I also we have different domain for each Landing page.
  So, for 50 Landing page, I need to, make copy of my web application, copy HTMLs, make new WAR file, make new Virtual Host (in tomcat for example), and finally deploy it!!!</p>
  
  <p>I want to know that is there any way to I have 50 domain, 1 single web application and 50 different folder for static files. for  example:</p>
  
  <pre><code>ROOT (Web application root directory)
    sub1.domain1.com (directory)
    sub2.domain1.com (directory)
    domain2.com (directory)
    domain3.com (directory)
    ...
  </code></pre>
  
  <p>Everytime that I visit <a href="http://sub1.domain1.com" rel="nofollow">http://sub1.domain1.com</a>, static files load from <strong>sub1.domain1.com</strong> folder and so on.</p>