leenooks / phpLDAPadmin

phpLDAPadmin - Web based LDAP administration tool
www.phpldapadmin.org
GNU General Public License v2.0
520 stars 166 forks source link

nginx with disabled ipv6 failed to start #242

Closed ergoz closed 7 months ago

ergoz commented 11 months ago

Describe the bug I have a server with disabled ipv6. If i try to start container i get error:

nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)

To Reproduce Steps to reproduce the behavior:

  1. Disable ipv6 in sysctl
  2. Disable ipv6 in grub
  3. start container 2.0.0-dev
  4. See error

Expected behavior Successfull start and run

Additional context Easy fix is to change listen [::]:80; to listen 80; or something same in registry.dege.au/leenooks/php:8.1-fpm-alpine-ldap file /etc/nginx/sites-available/default

leenooks commented 8 months ago

Ideally, you should think about deploying IPv6 since that is the future...

Anyway, my hosts have IPv6 enabled, but my containers do not, and I am not having any issues. Does cat /sys/module/ipv6/parameters/disable in the container show 1?