401 Unauthorized error while logging in Manager-App of Tomcat

后端 未结 19 2557
谎友^
谎友^ 2020-12-14 07:37

I am trying to log in to the Manager App in Tomcat 7.0.22 for Mac OS X 10.7. Here is the error I am getting: http://f.cl.ly/items/421q1K3f1i0X1H1M181v/so.tiff



        
19条回答
  •  时光取名叫无心
    2020-12-14 08:19

    If you are at Tomcat 8, you maybe missing the following. After updating the Realms and tomcat-users.xml, you also need to edit the apps' context.xml.

    By default, newer versions of Tomcat restrict access to the Manager and Host Manager apps to connections coming from the server itself. Since we are installing on a remote machine, you will probably want to remove or alter this restriction. To change the IP address restrictions on these, open the appropriate context.xml files.

    For Manager app:

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

    For Host-Manager app:

    /opt/tomcat/webapps/host-manager/META-INF/context.xml
    

    Comment out the following section for Valve as follows-

    
        
    
    

    You should be allset after this.

提交回复
热议问题