當 ubuntu 中執行多個 apache 實例時,為 ldap.conf 指定另一個檔案路徑

當 ubuntu 中執行多個 apache 實例時,為 ldap.conf 指定另一個檔案路徑

目前,我透過這種方法在 ubuntu 中運行了兩個 apache 實例:

ubuntu 上的多個 apache2 實例

兩個實例都使用 ldap,其中一個實例配置了/etc/ldap/ldap.conf.我想使用另一個 ldap.conf 檔案路徑配置第二個。

你知道如何做到這一點嗎?

答案1

根據 manldap.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

相關內容