I worked around this issue by manually creating the folder “.well-known” on the webspace and uploading the file “apple-developer-merchantid-domain-association”.
You’re correct. I’m not familiar with routes and virtual hosts in Apache. Maybe InvoiceNinja could setup the virtual host automatically? Otherwise it seems easier for me to just use the manually created folder.