www-cgi/: Document ?DEFAULTS environment filters
[userv-utils] / www-cgi / README.custom-env-filter
CommitLineData
ee8748e6
IJ
1www-cgi/: Allow customization of the environment filters.
2
3Sites can now configure `ucgi's environment filters, and end users can
4configure `ucgitarget's filters.
5
6By default, `ucgi' will look in `/etc/userv/ucgi.env-filter', but if
7`UCGI_ENV_FILTER' is set in its environment, it will look there
8instead. The filter may contain wildcards and so on.
9
10By default, `ucgitarget' looks in `.userv/ucgitarget.env-filter', or
11`/etc/userv/ucgitarget.env-filter', if the former doesn't exist; but if
12passed a `-e FILTER' option on its command line, it will look in the
13file FILTER instead. This filter may /not/ contain wildcards.
14
15In both cases, if an explicitly named filter file can't be found then
16the program fails; if the default filter files can't be found then they
17fall back to built-in lists.
18
19The reason for the asymmetry in interfaces is: it's hard to pass
20command-line options to CGI scripts from webservers, but pretty easy to
21set environment variables; whereas it's hard to pass environment
22variables to a service program in a Userv configuration file, but easy
23to pass command-line arguments.
2c62631d
IJ
24
25
26www-cgi: Introduce `?DEFAULTS' pattern to match the default set.