At work we’re in the middle of the development of a new Tomcat powered bioinformatics application, and have reached the stage were you have to show it to some peers but not make it publicly available. I do have an ubuntu 12.04 LTS server, so I took the most out of this Randeep’s post:
password protected directory in Tomcat →
Here it is how to do it in few steps:
- Add user, password and role in conf/tomcat-users.xml
- In the webapps/examples/WEB-INF/web.xml specify role, method and urls.
- Restart Tomcat and check the result