turn off tomcat webapp home directory

A

autogoor

Hi,

I am using tomcat and the file structure on server is like:

---tomcat
-webapp
-myapp
page1.jsp
page2.jsp

When type in "http://www.mysite.com:8080/myapp" in the browser, all my
jsp and other source files are listed and people can download from
there. How can I turn off the access to the "myapp" directory?

Thanks,

autogoor
 
T

Tor Iver Wilhelmsen

When type in "http://www.mysite.com:8080/myapp" in the browser, all my
jsp and other source files are listed and people can download from
there. How can I turn off the access to the "myapp" directory?

By changing the configuration. But the normal way is to put content
you don't want directly accessed under WEB-INF somewhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top