Handle hostnames with upper-case letters
[webmin.git] / apache / mpm_winnt.pl
1 # mpm_winnt.pl
2 # Defines editors for the windows NT module in apache 2.0
3 # The actual functions for most of these are still in core.pl
4
5 sub mpm_winnt_directives
6 {
7 local $rv;
8 $rv = [ [ 'CoreDumpDirectory', 0, 9, 'global', 2.0 ],
9         [ 'BindAddress Listen Port', 1, 1, 'global', 2.0, 10 ],
10         [ 'ListenBacklog', 0, 1, 'global', 2.0 ],
11         [ 'MaxRequestsPerChild', 0, 0, 'global', 2.0 ],
12         [ 'PidFile', 0, 9, 'global', 2.0 ],
13         [ 'SendBufferSize', 0, 1, 'global', 2.0 ],
14         [ 'ThreadsPerChild', 0, 0, 'global', 2.0 ] ];
15 return &make_directives($rv, $_[0], "mpm_winnt");
16 }
17
18 sub edit_ThreadsPerChild
19 {
20 return (1,
21         $text{'worker_threads'},
22         &opt_input($_[0]->{'value'},"ThreadsPerChild",$text{'default'}, 4));
23 }
24 sub save_ThreadsPerChild
25 {
26 return &parse_opt("ThreadsPerChild", '^\d+$',
27                   $text{'worker_ethreads'});
28 }
29