osixia / docker-phpLDAPadmin

phpLDAPadmin container image 🐳🌴
MIT License
842 stars 196 forks source link

error "AH01630: client denied by server configuration" #61

Open ghost opened 5 years ago

ghost commented 5 years ago

I use the following docker-compose.yml to deploy, but cannot access with the title error in logs.

I knew that this type error is quite common, but Require all granted was already shown in files:

version: '2'
services:

  openldap:
    restart: always
    networks:
      - nginx-proxy
    image: osixia/openldap:1.2.4
    container_name: ldap-openldap
    environment:
      - VIRTUAL_HOST=ldap.111.com
      - LDAP_LOG_LEVEL=256
      - LDAP_ORGANISATION=111
      - LDAP_DOMAIN=111.com
      - LDAP_BASE_DN=
      - LDAP_ADMIN_PASSWORD=admin
    tty: true
    stdin_open: true
    ports:
      - 389:389
      - 636:636
    domainname: 111.com
    hostname: 111.com

  phpldapadmin:
    restart: always
    networks:
      - nginx-proxy
    image: osixia/phpldapadmin:0.8.0
    container_name: ldap-phpldapadmin
    environment:
      - VIRTUAL_HOST=admin.ldap.111.com
      - PHPLDAPADMIN_LDAP_HOSTS=ldap.111.com
      - PHPLDAPADMIN_HTTPS:=false
    links:
      - openldap

networks:
    nginx-proxy:
      external:
         name: nginx-proxy
codefriar commented 4 years ago

have you found any solutions to this? it's happening to me too.

christianvw commented 4 years ago

Same here!

thomas-huegel commented 4 years ago

I encounter the same problem behind a reverse proxy (Traefik), otherwise it works.

speckins commented 4 years ago

Is that colon a typo? PHPLDAPADMIN_HTTPS:=false

You can get this error when trying to access the application over HTTP when it's been configured for HTTPS (or vice versa).

ShaddyDC commented 4 years ago

With PHPLDAPADMIN_HTTPS=false, it worked for me after I switched from proxying to port 443 to 80 in my reverse-proxy, in case anybody else made the same mistake.

alexander-jacob commented 3 years ago

Same here