: Apache Tomcat Password? I'm using dsBudget to manage my budgeting software. It's an apache tomcat web app. Would anyone know how I can password protect it? Basically it is designed to work
I'm using dsBudget to manage my budgeting software.
It's an apache tomcat web app.
Would anyone know how I can password protect it? Basically it is designed to work on a local machine, but I want to access it from multiple locations (which i can, but its not passworded)
Would anyone know how I can achieve this?
More posts by @Deb1703797
1 Comments
Sorted by latest first Latest Oldest Best
Tomcat can be configured to password protect the contents of a web app. Here is a tutorial about setting it up.
Create tomcat-users.xml similar to this:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="myname" password="mypassword" roles="tomcat"/>
<user username="test" password="test"/>
</tomcat-users>
Configure the web.xml for the web app to use the basic authentication by adding the following into the <web-app> section:
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.