wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Disable index page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Disable index page" Watch "Disable index page" New topic

Disable index page

michael yue
Ranch Hand

Joined: Nov 20, 2003
Posts: 204
Dear all,

How can I disable the index page, admin tool, examples and so on from the public access. I dont want to allow anybody to access these pages. thanks
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
1. index page - see the <welcome-file-list> element of the default web.xml - to prevent a file listing, search for the "listings" parameter in web.xml
2. access to admin and manager tools is protected by the respective roles defined in tomcat-user.xml - if you don't define a manager or admin role, nobody can get to the tool.
3. to prevent access to examples, just delete the directory and restart tomcat
4. for more subtle access control see the security manager docs installed with tomcat
I agree. Here's the link: http://aspose.com/file-tools
subject: Disable index page
Similar Threads
Disable back button of browser using javascript
404 Error
how to disable the ability that last accessed page is remembered
load on start up
My Page instead of Welcome Page of Tomcat