質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Tomcat

TomcatはApache Software Foundation (ASF)で開発されたオープンソースのWebコンテナです。

Q&A

解決済

1回答

2316閲覧

tomcat の 管理画面に行けなくなってしまいました。

cosmosyuki

総合スコア4

Tomcat

TomcatはApache Software Foundation (ASF)で開発されたオープンソースのWebコンテナです。

0グッド

1クリップ

投稿2020/08/29 10:52

編集2020/08/29 13:37

前提・実現したいこと

先週、自宅の自分のPCではない端末から、vpsサーバにアクセスしてtomcatの管理画面に入るための設定をして、入れました。
今、自宅の端末からログインしようとしたら、入れなくなっていました。
また管理画面に入れるようになりたいです。
どうか宜しくお願い致します。

発生している問題・エラーメッセージ

http://(IPアドレス):8080

のサイトに行き、右のManager appsのボタンから管理画面にログインしようとしておすと
403 Access Denied
の画面になってしまいます。

試したこと

conf/tomcat-users.xml (一応全文)

<tomcat-users xmlns="http://tomcat.apache.org/xml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://tomcat.apache.org/xml tomcat-users.xsd" version="1.0"> <!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary. It is strongly recommended that you do NOT use one of the users in the commented out section below since they are intended for use with the examples web application. --> <!-- NOTE: The sample user and role entries below are intended for use with the examples web application. They are wrapped in a comment and thus are ignored when reading this file. If you wish to configure these users for use with the examples web application, do not forget to remove the <!.. ..> that surrounds them. You will also need to set the passwords to something appropriate. --> <!-- <role rolename="tomcat"/> <role rolename="role1"/> <user username="tomcat" password="<must-be-changed>" roles="tomcat"/> <user username="both" password="<must-be-changed>" roles="tomcat,role1"/> <user username="role1" password="<must-be-changed>" roles="role1"/> --> <role rolename="admin-gui"/> <role rolename="manager-gui"/> <user username="ユーザー名" password="パスワード" roles="admin-gui,manager-gui"/> </tomcat-users>

manager/META-INF/context.xml 以下をコメントアウトしています

<!--Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.\d+.\d+.\d+|::1|0:0:0:0:0:0:0:1" /-->

host-manager/META-INF/context.xml 以下をコメントアウトしています

<!-- Valve className="org.apache.catalina.valves.RemoteAddrValve" allow="127.\d+.\d+.\d+|::1|0:0:0:0:0:0:0:1" / -->

補足情報(FW/ツールのバージョンなど)

さくらのvps
CentOS7

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

自己解決

VPSサーバーのOSを再インストールしてすべてのアプリケーションを最初からインストールし直して設定もひとつづつやり直してみました。

すると、問題なく管理画面に到達することができました。

いろんなものをインストールしたりファイルを書き換えたりする際に、もしかしたらおかしな設定になってしまっていたのかもしれません。

投稿2020/09/10 23:45

cosmosyuki

総合スコア4

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問