I have been battling with Caddy today. Some slight progress has been made; one can use fcgiwrap to provide CGI, so that's okay.

What is baffling me is that if I tell it to use the fastcgi transport for the matcher "/cgi/*" (all files under /cgi) then it works, but if I try to use the matcher "path *.cgi" (all paths ending with '.cgi') then it doesn't work any more; it serves up the CGI file as a plain text file, rather than running it.

Every single example I have found in regard to setting up for CGI, uses the prefix style of matcher, there are no examples for a suffix matcher. None whatsoever. I had to keep on looking over the Caddy documentation to check whether suffix matchers were actually legal and whether I was defining it incorrectly. But according to the docs, it should be valid. So WHY is it IGNORING my CGI files? ARRRRGHHHHH!

#Caddy #Webserver #Linux #LinuxWomen