Mobile app version of vmapp.org
Login or Join
Deb1703797

: 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

@Deb1703797

Posted in: #Apache #Tomcat

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Eichhorn148

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>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme