Thanks for replying. I now realise that “latest” was not only vague, but in fact wrong: I’m running Caddy v2.30 a.t.m. - here is the config snippet I’m currently using:
cgi * /var/www/git.jeelabs.org/cgit.cgi
As I understand it, this is not fastcgi. I couldn’t figure out from the docs how to use
php_fastcgi for this case. I have to admit that my grasp of Caddy has gone down since the move to v2 (I’m not a sys admin nor a web developer, sorry).
The above works, but the cache files created by
cgit are owned by root, which is a bit worrying, as this implies that it must be running at a far too high privilege level.