openpanel/documentation/docs/articles/domains/all-domains-show-nginx-502-error.md
2024-08-26 11:17:16 +02:00

498 B

All Domains show Nginx 502 error

This happens when a third party user/service restarted docker and the floatingip service failed to reload the /etc/hosts file with new docker private IP addresses.

To resolve this issue, run:

opencli server-recreate_hosts

Then restart Nginx service:

  • soft restart (reload without downtime):
    docker exec nginx bash -c "nginx -t && nginx -s reload"
    
  • hard restart (stop and start again):
    docker restart nginx