summaryrefslogtreecommitdiff
path: root/t/03ifmodule00.t
diff options
context:
space:
mode:
Diffstat (limited to 't/03ifmodule00.t')
-rw-r--r--t/03ifmodule00.t75
1 files changed, 75 insertions, 0 deletions
diff --git a/t/03ifmodule00.t b/t/03ifmodule00.t
new file mode 100644
index 0000000..7d2c286
--- /dev/null
+++ b/t/03ifmodule00.t
@@ -0,0 +1,75 @@
+# -*- perl -*-
+use lib qw(t lib);
+use strict;
+use Test;
+plan test => 1;
+
+use TestPreproc;
+
+my $obj = new TestPreproc -expand => [qw(ifmodule)];
+ok($obj->dump_raw, $obj->dump_expect);
+
+__DATA__
+!>httpd.conf
+LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
+LoadModule unixd_module lib/httpd/modules/mod_unixd.so
+
+<IfModule !mpm_netware_module>
+ PidFile "/var/run/httpd.pid"
+</IfModule>
+<IfModule mpm_prefork_module>
+ StartServers 1
+ MinSpareServers 1
+ MaxSpareServers 1
+ MaxClients 10
+ MaxRequestsPerChild 0
+</IfModule>
+<IfModule mpm_worker_module>
+ StartServers 2
+ MaxClients 150
+ MinSpareThreads 25
+ MaxSpareThreads 75
+ ThreadsPerChild 25
+ MaxRequestsPerChild 0
+</IfModule>
+<IfModule mpm_beos_module>
+ StartThreads 10
+ MaxClients 50
+ MaxRequestsPerThread 10000
+</IfModule>
+<IfModule mpm_netware_module>
+ ThreadStackSize 65536
+ StartThreads 250
+ MinSpareThreads 25
+ MaxSpareThreads 250
+ MaxThreads 1000
+ MaxRequestsPerChild 0
+ MaxMemFree 100
+</IfModule>
+<IfModule mpm_mpmt_os2_module>
+ StartServers 2
+ MinSpareThreads 5
+ MaxSpareThreads 10
+ MaxRequestsPerChild 0
+</IfModule>
+<IfModule unixd_module>
+ User apache
+ Group apache
+</IfModule>
+<IfModule mpm_winnt_module>
+ ThreadsPerChild 150
+ MaxRequestsPerChild 0
+</IfModule>
+!=
+LoadModule mpm_prefork_module lib/httpd/modules/mod_mpm_prefork.so
+LoadModule unixd_module lib/httpd/modules/mod_unixd.so
+
+ PidFile "/var/run/httpd.pid"
+ StartServers 1
+ MinSpareServers 1
+ MaxSpareServers 1
+ MaxClients 10
+ MaxRequestsPerChild 0
+ User apache
+ Group apache
+!$

Return to:

Send suggestions and report system problems to the System administrator.