aboutsummaryrefslogtreecommitdiff
path: root/regress/tests/Httpd.pm
diff options
context:
space:
mode:
authorReyk Floeter <reyk@esdenera.com>2017-08-16 09:27:36 +0200
committerReyk Floeter <reyk@esdenera.com>2017-08-16 09:27:36 +0200
commitce95017bf16f7937013134fc5188900d3e2cd9c7 (patch)
tree46733b80e540c509279eb46084fb8caa0399d2c5 /regress/tests/Httpd.pm
parentf6babe9f2d05966903998909432e8b873b69192f (diff)
downloadhttpd-ce95017bf16f7937013134fc5188900d3e2cd9c7.tar.gz
httpd-ce95017bf16f7937013134fc5188900d3e2cd9c7.zip
Diffstat (limited to 'regress/tests/Httpd.pm')
-rw-r--r--regress/tests/Httpd.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/tests/Httpd.pm b/regress/tests/Httpd.pm
index d5b9df0..485ff68 100644
--- a/regress/tests/Httpd.pm
+++ b/regress/tests/Httpd.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Httpd.pm,v 1.1 2015/07/16 16:35:57 reyk Exp $
+# $OpenBSD: Httpd.pm,v 1.2 2017/01/30 21:18:24 reyk Exp $
# Copyright (c) 2010-2015 Alexander Bluhm <bluhm@openbsd.org>
# Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -27,6 +27,7 @@ sub new {
my $class = shift;
my %args = @_;
$args{chroot} ||= ".";
+ $args{docroot} ||= "htdocs";
$args{logfile} ||= $args{chroot}."/httpd.log";
$args{up} ||= $args{dryrun} || "server_launch: ";
$args{down} ||= $args{dryrun} ? "httpd.conf:" : "parent terminating";
@@ -54,7 +55,7 @@ sub new {
my $listenport = $self->{listenport};
print $fh "prefork 1\n"; # only crashes of first child are observed
- print $fh "chroot \"".$args{chroot}."\"\n";
+ print $fh "chroot \"".$args{docroot}."\"\n";
print $fh "logdir \"".$args{chroot}."\"\n";
my @http = @{$self->{http}};