diff options
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/README.md b/README.md index ef2dd2b..47b3449 100644 --- a/README.md +++ b/README.md @@ -8,12 +8,22 @@ corgi listens on port 26744 by default. `/etc/corgi.conf` ``` +Server + Port 26744 + +Script <path-to-cgi-script> + Match + Regex <regular-expression> + Script <path-to-cgi-script> Environment HTTP_HOST <hostname> ENV_KEY <some-env-value> ``` +Scripts are tried in order, looking for one that matches. If none match, +the first script is ran. + Sets the following environmental variables for the CGI script, many following [RFC 3875][rfc]: - **`GATEWAY_INTERFACE`** to the fixed value `CGI/1.1` - **`PATH_INFO`** to the HTTP path the client requested |