Ubuntu で複数の Apache インスタンスを実行している場合は、ldap.conf に別のファイル パスを指定します。

Ubuntu で複数の Apache インスタンスを実行している場合は、ldap.conf に別のファイル パスを指定します。

現在、私はこの方法のおかげで、Ubuntu で 2 つの Apache インスタンスを実行しています:

Ubuntu 上の複数の apache2 インスタンス

両方のインスタンスは ldap を使用します。1 つは で構成されています/etc/ldap/ldap.conf。2 つ目のインスタンスを別の ldap.conf ファイル パスで構成したいと思います。

これをどうやって行うか知っていますか?

答え1

manページによるとldap.conf:

Additional configuration files can be specified using the LDAPCONF  and
LDAPRC  environment  variables.   LDAPCONF  may be set to the path of a
configuration file.  This path can be absolute or relative to the  cur‐
rent working directory.  The LDAPRC, if defined, should be the basename
of a file in the current working directory or in the user's home direc‐
tory.

したがって、LDACONFapache2 では別の定義をする必要がありますenvvars

関連情報