c-icap(8)

NAME

   c-icap - ICAP filtering server

SYNOPSIS

   c-icap [ -f  config-file ] [ -N ] [ -d  debug-level ] [ -D ]

DESCRIPTION

   c-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

   -f config-file
          Specify the configuration file

   -N     Do not run as daemon

   -d level
          Specify the debug level

   -D     Print debug info to stdout

FILES

   /etc/c-icap/c-icap.conf
          The main configuration file
   /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

NOTES

   Implemented commands
   Currently the following commands are implemented:

   stop
          The c-icap will shutdown

   reconfigure
          The service will reread the config file without the need to stop
          and   restart   the   c-icap   server.   The  services  will  be
          reinitialized

   relog
          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:

   To reconfigure c-icap:
                echo -n "reconfigure" > /var/run/c-icap.ctl

   To rotate access log:
                mv /var/log/c-icap/access.log /var/log/c-icap/access.log.1
                echo -n "relog" > /var/run/c-icap.ctl

   Lookup tables
   Lookup  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:

   file   Simple text file databases. The database records are  stored  in
          text files in the form:
           key[: value1, value2 ...]

          example path definition:
                 file:/path/to/the/file.txt

   hash   Similar  to  file  lookup tables but c-icap uses fast hashes for
          searching.

          example path definition:
                 hash:/path/to/the/file.txt

   regex  Similar to the file lookup  tables  but  the  keys  are  regular
          expressions in the form /regex/flags . For possible flags values
          please read 'Regex expressions' paragraph in this manual.

          example regex lookup table data:
                      /^[a-m].*/i: group1
                      /^[n-z].*/i: group2

   example path definition:
          regex:/path/to/the/file.txt

   Regex expressions
   The c-icap regex  expressions  have  the  form  /regex_definition/flags
   where "flags" is one or more letters, its of them express a flag.

   Common flags
          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

   If  the  module compiled using the pcre library the following flags can
   be used
          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 information
   Someone 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:

   Retrieve runtime information from command line:
          c-icap-client -i localhost -s "info?view=text" -req "a_url"

SEE ALSO

   c-icap-client(8)  c-icap-stretch(8) c-icap-config(8) c-icap-libicapapi-
   config(8) c-icap-mkbdb(8)

BUGS

   Many...

AUTHOR

   Tsantilas Christos

                             c_icap 0.4.4                        c-icap(8)



Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.


Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.

Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.


Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.

Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.


Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.

Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.