title: How can I get Tomcat to serve static content without /static/ being in the URL?
body: <p>I have a Tomcat server where I want to serve only static content from the ROOT application. The standard is to place a file like foo.html into the <code>webapps/ROOT/static</code> folder, and then access with a link like <code>http://myserver:8080/static/foo.html.</code></p>
  
  <p>How can I configure it to remove the <code>/static/</code> portion from the public URL, but still let me put all of my static content in the static folder?</p>
  
  <p>(I have lots of files with full path references in them that I can't easily change, like JavaScript with <code>src="/js/somefile.js"</code>, so I don't want to have to update them all to add /static to the beginning).</p>
  
  <p>I want the server to interpret that <code>http://myserver:8080/foo.html</code> means to find it in <code>webapps/ROOT/static</code>.  But I want a link like <code>http://myserver:8080/myotherapp/bar.html</code> to continue to resolve using <code>webapps/myotherapp/</code></p>