blue-sky
blue-sky

Reputation: 53826

Share a folder in tomcat

How can I enable a folder to be accessable using a browser with tomcat 6 ?

I think I need to add a context to web.xml ?

I'm trying - So when I navigate to http://localhost:8080/myfiles I expect to see the contents of c:\temp

Thanks

Upvotes: 2

Views: 6599

Answers (1)

Bozho
Bozho

Reputation: 597124

You need META-INF/context.xml, and there in the <Context> element set docBase to point to the desired directory.

See here the attributes to set in the Context element

Upvotes: 2

Related Questions