1#! /usr/bin/perl -w 2 3use strict; 4 5push @INC, "$ENV{SRCDIR}/tst"; 6 7require 'httpd_tst_utils.pl'; 8 9our $conf_args_strict; 10our $root; 11 12setup(); 13 14# V 15my $conf_arg = $conf_args_strict; 16my $nargs = $conf_arg . " --unspecified-hostname=default "; 17 $nargs .= "--mime-types-main=$ENV{SRCDIR}/mime_types_extra.txt "; 18 $nargs .= "--mime-types-xtra=$ENV{SRCDIR}/tst/ex_httpd_bad_mime "; 19 $nargs .= "--virtual-hosts=true "; 20 $nargs .= "--keep-alive=false "; 21 $nargs .= "--range=false "; 22 $nargs .= "--gzip-content-replacement=false "; 23 $nargs .= "--error-406=false "; 24 $nargs .= "--defer-accept=1 "; 25 $nargs .= "--max-connections=32 "; 26 $nargs .= "--max-header-sz=2048 "; 27 $nargs .= "--nagle=true "; 28 $nargs .= "--host=127.0.0.2 "; 29 $nargs .= "--idle-timeout=16 "; 30 $nargs .= "--dir-filename=welcome.html "; 31 $nargs .= "--accept-filter-file=$ENV{SRCDIR}/tst/ex_httpd_null_tst_1 "; 32 $nargs .= "--server-name='Apache/2.0.40 (Red Hat Linux)' "; 33 $nargs .= "--canonize-host=true "; 34 $nargs .= "--error-host-400=false "; 35 36 $nargs .= "--configuration-data-jhttpd"; 37 $nargs .= " '(policy <default> (MIME/types-default-type bar/baz))' "; 38 39daemon_init("ex_httpd", $root, $nargs); 40http_cntl_list(); 41all_none_tsts(); 42daemon_exit(); 43 44 45rmtree($root); 46 47success(); 48 49