401 Unauthorized error while logging in Manager-App of Tomcat

后端 未结 19 2570
谎友^
谎友^ 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:09

    In my case, I had multiple ... sections in my context.xml and I had to copy and paste the ... into each ... section because I had the manager app deployed in each one of these hosts that were part of a separate Engine.

    The answer from @swapnil chaudhari about the IP address restriction in the app's META-INF/context.xml is also helpful, however I found it more beneficial to override the Context in my server's server.xml.

    In the end, I have something like this for each one of my Engines:

        
          
            
          
          
            
              
              
          
        
    

    docBase is relative to appBase. In /opt/tomcat/webapps/MyUniqueHost, I have a symbolic link to the manager application installed by my system's package manager (Debian-based), which placed it at /usr/share/tomcat8-admin/manager. These symbolic links allow me to use the manager app in all my Hosts without copying the manager application.

提交回复
热议问题