Geben Sie einen anderen Dateipfad für ldap.conf an, wenn mehrere Instanzen von Apache in Ubuntu ausgeführt werden

Geben Sie einen anderen Dateipfad für ldap.conf an, wenn mehrere Instanzen von Apache in Ubuntu ausgeführt werden

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.confManpage:

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 LDACONFin Apache2 anders definieren envvars.

verwandte Informationen