cgifun

A basic example of CGI + Caddy web server
Log | Files | Refs | README

README.md (463B)


      1 # cgifun
      2 
      3 Just an extremely simple example of a CGI program with caddy web server and zig as the CGI program.
      4 
      5 To run:
      6 * Have caddy with [CGI plugin](https://caddyserver.com/docs/modules/http.handlers.cgi)
      7 * Have [zig](https://ziglang.org/download/) programming language.
      8 * `zig build && caddy run`
      9 * Open http://localhost:8080 in your browser
     10 
     11 You'll see a webpage full of environment variables which are passed as part of the CGI protocol to the cgifun program.