I’m trying to get Redmine working with Caddy.
The first approach - which works - is to run Ruby’s “WebRick” test server on some port, and then have Caddy proxy to that. This is what I’m doing now - with Redmine started manually that way. It runs fine, although Webrick is grabbing more and more RAM (over 1.5 GB by now).
FWIW, I already have php7.0-fpm set up and in use for another site, also behind Caddy, running on port 9000.
And that’s where I’m getting stuck. If I set up fastcgi on Caddy for the Redmine site, I assume it has to point to another instance of fastcgi on another port? If I point it to port 9000, then it’ll complain with “Access denied” when I use
dispatch.fcgi as rewrite rule for everything. If I add “
.fcgi” as allowed suffix in fpm’s
www.conf, alongside the default
.php, then I get the
dispatch.fcgi served as plain text, instead of it being launched to set up an fcgi process.
My question - I think - is: how does Caddy’s fastcgi “endpoint” parameter tie into Redmine’s
dispatch.fcgi script? Who should launch that? If I launch
dispatch.fcgi manually, it sits there, waiting for commands on its stdin.