![Ubuntu で複数の Apache インスタンスを実行している場合は、ldap.conf に別のファイル パスを指定します。](https://rvso.com/image/697039/Ubuntu%20%E3%81%A7%E8%A4%87%E6%95%B0%E3%81%AE%20Apache%20%E3%82%A4%E3%83%B3%E3%82%B9%E3%82%BF%E3%83%B3%E3%82%B9%E3%82%92%E5%AE%9F%E8%A1%8C%E3%81%97%E3%81%A6%E3%81%84%E3%82%8B%E5%A0%B4%E5%90%88%E3%81%AF%E3%80%81ldap.conf%20%E3%81%AB%E5%88%A5%E3%81%AE%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%20%E3%83%91%E3%82%B9%E3%82%92%E6%8C%87%E5%AE%9A%E3%81%97%E3%81%BE%E3%81%99%E3%80%82.png)
現在、私はこの方法のおかげで、Ubuntu で 2 つの Apache インスタンスを実行しています:
両方のインスタンスは 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.
したがって、LDACONF
apache2 では別の定義をする必要がありますenvvars
。