Access Tomcat Manager App from different host

前端 未结 4 1923
一个人的身影
一个人的身影 2020-11-30 17:18

I have installed tomcat 9 on a remote sever and after starting it, it was brought up fine, I can access http://host_name:port_num and see tomcat hello page. But when I try t

4条回答
  •  甜味超标
    2020-11-30 18:11

    To access the tomcat manager from different machine you have to follow bellow steps:

    1. Update conf/tomcat-users.xml file with user and some roles:

    
     
     
     
     
    

    Here admin user is assigning roles="manager-gui,manager-script,manager-jmx,manager-status".

    Here tomcat user and password is : admin

    2. Update webapps/manager/META-INF/context.xml file (Allowing IP address):

    Default configuration:

    
      
      
      
      
    
    

    Here in Valve it is allowing only local machine IP start with 127.\d+.\d+.\d+ .

    2.a : Allow specefic IP:

    
    

    Here you just replace |YOUR.IP.ADDRESS.HERE with your IP address

    2.b : Allow all IP:

    
    

    Here using allow=".*" you are allowing all IP.

    Thanks :)

提交回复
热议问题