AIO behind Caddy & Cloudflare: App Password login fails with 401, but main password works

Can you be more specific? Specifically:

  • Are you using an email address to login?
  • What WebDAV URL are you testing against?
  • Can you share the full curl command you’re using?
  • Are you using local accounts?

What appears in your Nextcloud log?

It would also be helpful if you shared your full parsed config (occ config:list system) and app list (occ app:list) as requested in the support template.

Do you have any warnings or errors under Admin settings->Overview?