Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
Apache::Config::PreproUserfContributed PerApache::Config::Preproc::ifmodule(3)

NAME
       Apache::Config::Preproc::ifmodule - expand IfModule statements

SYNOPSIS
	   $x =	new Apache::Config::Preproc '/path/to/httpd.conf',
		      -expand => [ qw(ifmodule)	];

	   $x =	new Apache::Config::Preproc '/path/to/httpd.conf',
		      -expand => [
			  { ifmodule =>	{ probe	=> [ '/usr/sbin/httpd' ] } }
		      ];

DESCRIPTION
       Expands the <IfModule> statements in the	Apache configuration parse
       tree. If	the statement's	argument evaluates to true, it is replaced by
       the statements inside it. Otherwise, it is removed. Nested statements
       are allowed.  The LoadModule statements are examined in order to
       evaluate	the argument.

       The following constructor arguments are understood:

       preloaded => LISTREF
	   Supplies a list of preloaded	module names. You can use this
	   argument to pass a list of modules linked statically	in your
	   version of httpd.

       probe =>	LISTREF	| 1
	   Provides an alternative way of handling statically linked Apache
	   modules.  If	LISTREF	is given, each its element is treated as the
	   pathname of the Apache httpd	binary.	The first of them that is
	   found is run	with the -l option to list the statically linked
	   modules, and	its output is parsed.

	   The argument

	       probe =>	1

	   is a	shorthand for

	       probe =>	[qw(/usr/sbin/httpd /usr/sbin/apache2)]

SEE ALSO
       Apache::Config::Preproc

perl v5.32.0			  2020-01-Apache::Config::Preproc::ifmodule(3)

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=Apache::Config::Preproc::ifmodule&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help