Apache Tomcat/8.5.3 Manager App 403 error

后端 未结 3 2038

I have tomcat running on an ubuntu instance on aws and I can successfully get to the If you\'re seeing this, you\'ve successfully installed Tomcat. Congratulations!

3条回答
  •  一个人的身影
    2021-02-11 03:50

    I believe another way to resolve this is to edit the context.xml file that exists by default in the app:

    $CATALINA_HOME/webapps/manager/META-INF/context.xml

    Prior to Tomcat 8.5, the Valve here was commented out:

    
      
      
    
    

    But it seems to be uncommented by default in 8.5. As noted in the 8.5x migration guide, https://tomcat.apache.org/migration-85.html#Migrating_from_8.0.x_to_8.5.x:

    Migrating from 8.0.x to 8.5.x

    This section lists all the known changes between 8.0.x and 8.5.x which may cause backwards compatibility problems when upgrading.

    ...

    Web applications

    The Manager and HostManager web applications are configured by default with a RemoteAddrValve that limits access to those applications to connections from localhost.


    So, bottom line, I think you could adjust the context.xml in the app, or make a new manager.xml file and adjust that context element, as described above.

提交回复
热议问题