I configured Tomcat6 on RHEL6. I have deployed several military files and the web server is working. I could enter the "Tomcat Web Application Manager" after setting up $ catalina.home / conf / tomcat-user.xml, which looks like this:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user name="tomcat" password="password" roles="manager" />
</tomcat-users>
I used the following command to stop the "/ httpif" application, but it did not work.
wget http://tomcat:password@localhost:8080/manager/html/stop?path=/httpif
The error is that I had 401 unauthorized access.
--2014-03-05 14:28:23-- http://localhost:8080/manager/html/stop?path=/httpif
Resolving localhost (localhost)... ::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:8080... connected.
HTTP request sent, awaiting response... 401 Unauthorized
Authorization failed.
Can someone help me how can I get through this? Thanks in advance.
source
share