Protecting jsp sites through password in Tomcat

by guruprasad 2014-02-01 10:56:12

To protect the jsp and java oriented websites through password like using htpasswd in php part,do the following:

Steps:


1.select conf folder in apache server.

2.Specify the username and password in tomcat-users.xml inside the <tomcat-users> tag like,

002.jpg



3.Specify the role specified in the web.xml file after <web-resource-collection> tag,


001.jpg

4.Restart the tomcat server.

5.Now the page will be protected through password.
827
like
0
dislike
0
mail
flag

You must LOGIN to add comments