Tomcat Valve settings

前端 未结 4 1537
名媛妹妹
名媛妹妹 2020-12-06 12:45

I\'m stuck with sort of a configuration issue I think. I need to protect a folder which is within my actual tomcat application from access from a certain IP range.

I

4条回答
  •  不知归路
    2020-12-06 13:43

    The Tomcat Valve can be applied to the whole Engine, the Host or a specific Context (webapp). You have to use it for you whole app, not specific path or directories.

    You should set it in your META-INF/context.xml or your context fragment in conf/Catalina/[host] directory. For example,

    
      ...
      
    
    

提交回复
热议问题