Running cgi scripts in separate dir

1. Caddy version (caddy version):


2. How I run Caddy:

html web site and perl scripts

a. System environment:


d. My complete Caddyfile or JSON config: {

	root * /var/www/cgi
	try_files {path} {path}/ {path}.cgi?{query}
	reverse_proxy unix//var/run/fcgiwrap.socket {
		transport fastcgi {
			split .cgi


3. The problem I’m having:

the caddy file above is serving cgi scrips properly. we would like to serve html pages as well (html pages on our server are located in /var/www/html)

Please fill out the help topic template. The questions it asks are important for us to properly help you.

This topic was automatically closed after 30 days. New replies are no longer allowed.