From 34a423c3608b2ec2c852986350152cb6c38ba4be Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Mon, 21 Aug 2023 22:10:31 +0100 Subject: initial --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md (limited to 'README.md') diff --git a/README.md b/README.md new file mode 100644 index 0000000..5556f06 --- /dev/null +++ b/README.md @@ -0,0 +1,11 @@ +# cgifun + +Just an extremely simple example of a CGI program with caddy web server and zig as the CGI program. + +To run: +* Have caddy with [CGI plugin](https://caddyserver.com/docs/modules/http.handlers.cgi) +* Have [zig](https://ziglang.org/download/) programming language. +* `zig build && caddy run` +* Open http://localhost:8080 in your browser + +You'll see a webpage full of environment variables which are passed as part of the CGI protocol to the cgifun program. \ No newline at end of file -- cgit v1.2.3-ZIG