CGD - Common Gateway Daemon

CGD is a daemon that listens to either FastCGI or plain HTTP request and hands them over to a given CGI program.

CGD is written in Go, if you have Go installed all you need to get cgd is to run:

go get

To run CGD simply call it passing the path to the CGI program or script to run for all requests using the -c flag, for example:

cgd -c

To run in FastCGI mode use the -f flag.

Use the -a flag to set the port where to listen.

CGD doesn’t daemonize itself, use daemontools or similar for that.

Source and Development

CGD is (for now) hosted at GitHub:


MIT/CC0/Public Domain