Home>

I want to make ldap authentication for Apache's/home/*/public_html, but it doesn't work. The authentication for/var/www/html is working.
Is there any reason why the auth-ldap directory is authenticated but the/home/xxx/public_html directory is not authenticated?

The configuration file has been created so far.
Parts related to personal information are indicated by x.
/etc/httpd/conf.d/auth_ldap.conf

<Directory/var/www/html/auth-ldap>
AuthName"LDAP Authentication"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPBindDN cn = Manager, dc = xxx, dc = com
AuthLDAPBindPassword xxx
AuthLDAPURL ldaps: //xx.xx.xx.xx/ou=xxx,dc=xxx,dc=com? Uid? Sub? (ObjectClass = *)
Require ldap-user xxx
Require ldap-user xxx
Require ldap-user xxx
Require ldap-user xxx
Require ldap-user xxx
</Directory>

<Directory"/home/xxx/public_html">
AuthName"LDAP Authentication"
AuthType Basic
AuthBasicProvider ldap
AuthLDAPBindDN cn = Manager, dc = xxx, dc = com
AuthLDAPBindPassword xxx
AuthLDAPURL ldaps: //xx.xx.xx.xx/ou=xxx,dc=xxx,dc=com? Uid? Sub? (ObjectClass = *)
Require ldap-user xxx
</Directory>

The OS uses CentOS7.1 and Apache uses Apache2.4.6.