Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. 1. Configure Tomcat Web Management Interface:
  2. $ vim $TOMCAT_HOME/conf/tomcat-users.xml
  3.  
  4. 2. tomcat-users.xml file :
  5. <tomcat-users>
  6. <user username="admin" password="password" roles="manager-gui,admin-gui"/>
  7. </tomcat-users>
  8.  
  9. 3. By default, newer versions of Tomcat restrict access to the Manager and
  10. Host Manager apps to connections coming from the server itself. Since we are
  11. installing on a remote machine, you will probably want to remove or alter this
  12. restriction. To change the IP address restrictions on these,
  13. open the appropriate context.xml files.
  14.  
  15. $ sudo vim $TOMCAT_HOME/webapps/manager/META-INF/context.xml
  16. $ sudo vim $TOMCAT_HOME/webapps/host-manager/META-INF/context.xml
  17.  
  18. Inside, comment out the IP address restriction to allow connections from anywhere.
  19. Alternatively, if you would like to allow access only to connections coming from
  20. your own IP address, you can add your public IP address to the list:
  21.  
  22. <Context antiResourceLocking="false" privileged="true" >
  23. <!--<Valve className="org.apache.catalina.valves.RemoteAddrValve"
  24. allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />-->
  25. </Context>
  26.  
  27. system restart tomcat
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement