title: Loading static files on a Tomcat server
body: <p>Having an issue which I see others have had with loading static files (e.g html) on a Tomcat server. Following a <a href="http://teknosrc.com/access-local-files-static-content-images-videos-media-files-outside-web-application-system-apache-tomcat-server/" rel="nofollow noreferrer">guide on accessing local files from a tomcat server</a>, I have added <code>&lt;Context docBase="F:/Sprint000" path="/static" /&gt;</code> to the <code>server.xml</code> file. I keep getting a 404 error. I'm assuming the root folder is `webapps'?</p>
  
  <p>Any ideas?</p>
  
  <p>Directory:<code>webapps/Sprint000/index.htm</code></p>
  
  <p><strong>Server.xml</strong></p>
  
  <pre><code>&lt;Engine name="Catalina" defaultHost="localhost"&gt;
  
        &lt;Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/&gt;
  
        &lt;Realm className="org.apache.catalina.realm.LockOutRealm"&gt;
  
          &lt;Realm className="org.apache.catalina.realm.UserDatabaseRealm"
                 resourceName="UserDatabase"/&gt;
        &lt;/Realm&gt;
  
        &lt;Host name="localhost"  appBase="webapps"
              unpackWARs="true" autoDeploy="true"&gt;
  
               Documentation at: /docs/config/valve.html --&gt;
  
          &lt;Valve className="org.apache.catalina.authenticator.SingleSignOn" /&gt;
  
         &lt;Context docBase="/Sprint000" path="/static" /&gt;  
          &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
                 prefix="localhost_access_log." suffix=".txt"
                 pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" /&gt;
  
        &lt;/Host&gt;
      &lt;/Engine&gt; 
  </code></pre>