403 Access Denied on Tomcat 8 Manager App without prompting for user/password

前端 未结 16 2241
天涯浪人
天涯浪人 2020-12-01 01:39

I have set up tomcat 8 according to this, and I have the following tomcat-users.xml file:




        
16条回答
  •  温柔的废话
    2020-12-01 02:27

    fade's answer worked for me. I moved from 8.0.30 to 8.5.5 and the difference was the valve in <8.0.30>/manager/META-INF/context.xml was already commented out from the tar file but was uncommented in 8.5.5 tar.

    I failed to read this important message in the 403 response:

    By default the Manager is only accessible from a browser running on the same machine as Tomcat. If you wish to modify this restriction, you'll need to edit the Manager's context.xml file.

    And failed to read this too:

    Since r1734267 a RemoteAddrValve.is configured by default in Manager and HostManager web applications. This feature is present in 9.0.0.M4 and 8.5.0 onwards.

    https://bz.apache.org/bugzilla/show_bug.cgi?id=59672

提交回复
热议问题