Deploy static content on Tomcat

Some times you may need to deploy static content like zip, html, gif or other static files on Tomcat. In order to deploy such content, we recommend to create a folder, lets call it “static-content” under “webapps” folder of Tomcat installation, and place all your static files there.

1 – Create a folder named “static-content” under “webapps” folder of Tomcat

2 – Place a file like “index.html” in this folder, and add some content to it.

3 – Restart Tomcat and try to access “http://yourtomcat:8080/static-content/index.html

Related Posts