reload: adapting config using caddyfile: parsing caddyfile tokens for 'rewrite': Caddyfile:6 - Error during parsing: Wrong argument count or unexpected line ending after '{http.request.uri.path}/'
How can I use New Matchers in my use-case?
I am still a bit lost with the new caddy and documentation, any help would be appreciated
Have you looked at the upgrade guide? It will help ease the transition. I just updated it based on some things I see here.
Namely, the php_fastcgi directive is not the same as the fastcgi directive from v1. There is no php preset because PHP is already assumed by the directive name.
So you probably need just php_fastcgi 127.0.0.1:9000 instead โ and see if that works by itself. Remove the other config parameters, they are not in v2.
Sorry, none in Caddy actually! I did not want to make anyone lose time on this. After some hours spent on searching a solution, the problem was right under my nose.
I found out a symlink was broken because in the meantime I changed the root path inside the container (the images are not stored in the exposed root).
After fixing the symlink, the Caddy config you posted above works like a charm, no need to add any additional directives.