legacy-knowledge-base
公開されました Jul. 2, 2025

ウェブサーバーの認証情報を更新する方法

written-by

Madeleine Clay

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • ウェブサーバーのログイン 認証情報を変更したいのですが。

Environment

  • LXC-SM

解決策

  • デフォルトでは、ウェブサーバー nginx.conf は、ユーザーとパスワードの認証に .htpasswd ファイルを使用します。これは、ウェブサーバーの下にある /var/www/html/.htpasswdで見つけることができます。
  • ユーザー名またはパスワードを更新する場合、
    • webserver/configs/[env]/publicの下に .htpasswd というタイトルのファイルをローカルリポジトリに作成します。
    • コマンド htpasswd -nb user pass を使用して、ファイルの内容を apache-md5 暗号化で生成します。
    • クラウドリポジトリにコミットします。
    • ビルドをデプロイします。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base