LoginSignup
3
1

More than 5 years have passed since last update.

【メモ】tomcatの管理ユーザ設定

Last updated at Posted at 2014-01-16

conf/tomcat-users.xmlの設定例

manager-gui, admin-guiの両方の権限を1つのユーザ(admin)にさせたい場合

<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="admin" password="" roles="manager-gui,admin-gui"/>

↑このような感じでrolesにCSV形式で渡す。

<user username="admin" password="" roles="admin-gui"/>
<user username="admin" password="" roles="manager-gui"/>

↑のように2行に渡って書くと、最後の行しか有効にならなくてハマります。

あと、XMLを修正したらtomcat再起動が必要。

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1