Howto prevent WEB-INF from being browsable

F

fo0

hello, i have setup apache w/ tomcat. though i am able to browse the
WEB-INF directory. how can i set this up to be forbidden to normal
access?
 
S

Sudsy

fo0 said:
hello, i have setup apache w/ tomcat. though i am able to browse the
WEB-INF directory. how can i set this up to be forbidden to normal
access?

Use a .htaccess file. And check for Directory tags in your httpd.conf
file.
 
T

Tor Iver Wilhelmsen

hello, i have setup apache w/ tomcat. though i am able to browse the
WEB-INF directory. how can i set this up to be forbidden to normal
access?

The Tomcat web-app area should NOT be anywhere under the Apache's web
content area. Use a different directory tree and set up the Apache +
Tomcat integration as per the docs (mod_jk and all that).
 
H

hiwa

hello, i have setup apache w/ tomcat. though i am able to browse the
WEB-INF directory. how can i set this up to be forbidden to normal
access?
For WEB-INF access, Tomcat 5.0.x gives 404 status code while Resin Web
Server gives 403. Resin's behavior is correct.

I suspect that your WEB-INF is in the Apache document root and
unprotected in the Apache conf.
 
O

Oscar kind

Tor Iver Wilhelmsen said:
The Tomcat web-app area should NOT be anywhere under the Apache's web
content area. Use a different directory tree and set up the Apache +
Tomcat integration as per the docs (mod_jk and all that).

And when you have set it up in this manner, the WEB-INF folder will not be
browsable, visible nor accessible.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top