• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

restricting access to manager and admin

 
Tobin Jackson
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,

I placed the following "Valve" tag in my manager.xml context file.



However, when I try to access the manager app locally i get the big "403:forbidden"... Comment it out and I'm in

I'm using Tomcat 5.0.27/linux. Any ideas?

Tobin
 
Surasak Leenapongpanit
Ranch Hand
Posts: 341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In addition to the password restrictions the manager web application could be restricted by the remote IP address or host by adding a RemoteAddrValve or RemoteHostValve. Here is an example of restricting access to the localhost by IP address:

<Context path="/manager" debug="0" privileged="true"
docBase="/usr/local/kinetic/tomcat5/server/webapps/manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127.0.0.1"/>
</Context>


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic