Name

DebugHost — restrict debug mode to requests originating from specific hosts

SYNOPSIS

IP_address_glob...

DESCRIPTION

The DebugHost configuration directive restricts debug mode to only selected list of client hosts.

DebugHost accepts a list of IP addresses and IP address ranges.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: enabling DebugHost

DebugFile /tmp/debug

DebugHost 10.1.1.0/24 12.176.97.0/25 127.0.0.1

NOTES

See debug glossary entry for complete discussion on using debug mode.

AVAILABILITY

DebugHost is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 717

['DebugHost',       'ip_address_regexp',  ''],

Source: lib/Vend/Config.pm
Line 3888 (context shows lines 3888-3901)

sub parse_ip_address_regexp {

my ($var, $value) = @_;
return '' unless $value;

eval {
  require Net::IP::Match::Regexp;
};
$@ and config_error("$var directive requires module: $@");

my $re = Net::IP::Match::Regexp::create_iprange_regexp($value)
  or config_error("Improper IP address range for $var");
  return $re;
}

AUTHORS

Interchange Development Group

SEE ALSO

DebugTemplate(7ic), DebugFile(7ic)

DocBook! Interchange!