|
NAMEc-icap - ICAP filtering serverSYNOPSISc-icap [ -V ] [ -VV ] [ -f config-file ] [ -N ] [ -d debug-level ] [ -D ]DESCRIPTIONc-icap is an implementation of an ICAP server. It can be used with HTTP proxies that support the ICAP protocol. Most of the comercial HTTP proxies must support ICAP pcotocol.OPTIONS
FILES/usr/local/etc/c-icap/c-icap.confThe main configuration file
/usr/local/etc/c-icap/c-icap.magic
In this file defined the types of files and the groups of file types.
/var/run/c-icap.pid
By default c-icap writes its pid in this file. The path
of this file can changed using the PidFile configuration parameter in the
c-icap.conf file
/var/run/c-icap.ctl
The commands socket. This file used to send commands to
the icap server from command line. For information about implemented commands
look below in the "Implemented commands" sub-section
NOTESImplemented commandsCurrently the following commands are implemented:
The c-icap will shutdown
The service will reread the config file without the need
to stop and restart the c-icap server. The services will be
reinitialized
This command causes c-icap to close and reopen the log
files. This is very useful for log rotation.
Services and modules can define their own commands. Examples:
Lookup tablesLookup tables are simple read-only databases. A lookup table can defined in c-icap.conf file using the form:type:path where the type is the type of lookup table and path is the extra information required to use the table (e.g. file path). Currently the following lookup table types defined internally by c-icap:
key[: value1, value2 ...]
file:/path/to/the/file.txt
hash:/path/to/the/file.txt
regex:/path/to/the/file.txt
Regex expressionsThe c-icap regex expressions have the form /regex_definition/flags where "flags" is one or more letters, its of them express a flag.
g This flag forces the score multiplied by the number of
regex
expression matches. For example if the expression matches 5
times and the devined score value is 10 then the final score
will be 50.
i Do caseless matching
m Match-any-character operators don't match a newline
and ^$ operators does not match newlines within data
s (PCRE_DOTALL) matches anything including NL
x (PCRE_EXTENDED) Ignore whitespace and # comments
A (PCRE_ANCHORED) Force pattern anchoring
D (PCRE_DOLLAR_ENDONLY) $ not to match newline at
end
U (PCRE_UNGREEDY) Invert greediness of quantifiers
X (PCRE_EXTRA) PCRE extra features
u (PCRE_UTF8) Run in UTF-8 mode
Runtime informationSomeone can retrieve runtime information using the info service. The information includes bytes received and transmited, active services, information about service usage and many other. The information provided in HTML and text format.Example:
c-icap-client -i localhost -s "info?view=text"
-req "a_url"
SEE ALSOc-icap-client(8) c-icap-stretch(8) c-icap-config(8) c-icap-libicapapi-config(8) c-icap-mkbdb(8)BUGSMany...AUTHORTsantilas Christos
Visit the GSP FreeBSD Man Page Interface. |