blue-sky
blue-sky

Reputation: 53826

How to use tomcat as a file server

I have deployed a folder named mycontent to TOMCAT_HOME\webapps folder. My server is running on port 8080 . When I try to navigate to the folder using http://localhost:8080/mycontent the folder I receive a "HTTP Status 404" error. How can I use Tomcat to share the files within a folder in webapps ?

I don't think I need to add a context as the folder is in webapps and should be served automatically ?

Upvotes: 0

Views: 1536

Answers (1)

blue-sky
blue-sky

Reputation: 53826

"To allow directory browsing via Apache Tomcat change the listings parameter in the file conf/web.xml from false to true."

Quoted from : http://www.vogella.com/articles/ApacheTomcat/article.html

If tomcat is configured like so :

enter image description here

Add the app to \WORKSPACE_DIR\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\webapps

instead of webapps dir in TOMCAT_HOME

Upvotes: 1

Related Questions