changing documentroot of subdomain results in deleted dns record

I am using Cloudflare for DNS. Running ApisCP 3.2.45 on AlmaLinux 8.10 Linux 4.18.0-553.16.1.el8_10.x86_64

steps to reproduce:

  • From ApisCP frontend, add a subdomain.
  • Verify that DNS record was created.
  • From List Subdomains screen, select “Edit” for the new subdomain.
  • Change the Document Root and click “Save”.
  • Verify that DNS record no longer exists.

Expected behavior: DNS record should remain unchanged when changing the Document Root.

Thanks for the bug report. Fixed in edge. Run upcp to bring your codebase in line with changes.

I believe the issue stems from a positive cache result in DNS bypassing record creation on path change, which is a simple enough fix. :+1:

1 Like