0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Liferay LXC-SMのBasic認証について

Last updated at Posted at 2023-09-20

Basic認証を追加する場合、下記の手順をご参考ください。

1.環境対応の設定ファイル:liferay.confに下記のコードを追加

auth_basic "Authentication Required";
auth_basic_user_file /var/www/html/.htpasswd;

image.png

2.環境対応の設定ファイル:.htpasswdにユーザー名とエンコードされたパスワードを追加

[username]:[エンコードされたパスワード]

image.png

3.パスワードのエンコード生成方法:

3.1 オンラインツールを使う
https://www.luft.co.jp/cgi/htpasswd.php

3.2 コマンドラインで生成:

XXX/webserver/configs/dev/public > htpasswd -c .htpasswd [username]                                                                                                        
New password:
Re-type new password:
Adding password for user [username]
xxx/webserver/configs/dev/public > cat .htpasswd                                                                                                                      
[username]:$apr1$334Op$MU33STdpHu.Vj2g/tLGTn1

参考記事

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?