![Geben Sie einen anderen Dateipfad für ldap.conf an, wenn mehrere Instanzen von Apache in Ubuntu ausgeführt werden](https://rvso.com/image/697039/Geben%20Sie%20einen%20anderen%20Dateipfad%20f%C3%BCr%20ldap.conf%20an%2C%20wenn%20mehrere%20Instanzen%20von%20Apache%20in%20Ubuntu%20ausgef%C3%BChrt%20werden.png)
Derzeit betreibe ich dank dieser Methode zwei Apache-Instanzen in meinem Ubuntu:
Mehrere Apache2-Instanzen auf Ubuntu
Beide Instanzen verwenden LDAP, eine ist mit konfiguriert /etc/ldap/ldap.conf
. Die zweite möchte ich mit einem anderen ldap.conf-Dateipfad konfigurieren.
Wissen Sie, wie das geht?
Antwort1
Laut ldap.conf
Manpage:
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.
Sie sollten es also LDACONF
in Apache2 anders definieren envvars
.