Re: help with config file

From: Noam - Technion <srnoam@dont-contact.us>
Date: Fri, 10 Jun 2005 19:08:09 +0200

Henrik,
Thanks for the help,
Gad from my group should send you a more comprehensive response if we need
one.
Cheers,
Noam

----- Original Message -----
From: "Henrik Nordstrom" <hno@squid-cache.org>
To: <srnoam@t2.technion.ac.il>
Cc: "Squid Developers" <squid-dev@squid-cache.org>
Sent: Thursday, June 09, 2005 12:14 AM
Subject: Re: help with config file

>
>
> On Wed, 8 Jun 2005 srnoam@t2.technion.ac.il wrote:
>
>> We are trying to add new variables in the config file, so we can use them
>> later on in the code. could you direct us to the right way / place in the
>> source code so squid will recognize the variables?
>
> cf.data.pre contains all the configuration directives and their variables.
> The syntax is pretty self-explanatory:
>
> NAME: http_port ascii_port
> TYPE: http_port_list
> DEFAULT: none
> LOC: Config.Sockaddr.http
> DOC_START
> Usage: port [options]
> hostname:port [options]
> 1.2.3.4:port [options]
> [...]
> internal address:port in http_port. This way Squid will only be
> visible on the internal address.
> NOCOMMENT_START
> # Squid normally listens to port 3128
> http_port 3128
> NOCOMMENT_END
> DOC_END
>
>
>
> NAME tells the primary directive name optioally followed by compatibility
> aliases.
>
> TYPE tells how the directive is parsed. Maps to parser functions in
> cache_cf.c.
>
> DEFAULT (and DEFAULT_IF_NONE) defines the default value.
>
> LOC tells the variable location where the value of the directive is to be
> stored.
>
> DOC_START/END identifies the documentation for this directive.
>
> NOCOMMENT_START/END is for providing more explicit suggested default
> configs..
>
> and the variable needs to be defined somewhere suitable. Most is in the
> large struct SquidConfig.
>
> Regards
> Henrik
>
Received on Fri Jun 10 2005 - 10:07:50 MDT

This archive was generated by hypermail pre-2.1.9 : Thu Jun 30 2005 - 12:00:05 MDT