Many thanks again Francis, seems to work OK!. It is actually quite a nice way of writing this stuff, I was just stuggling for examples to work with.
As I mentioned in another post, I’m upgrading some old Kirby 2 CMS sites for Caddy v2. I’ll document it on this community when I’ve done and people can then check to make sure I’ve done it in the best way.