summaryrefslogtreecommitdiff
path: root/regress/usr.sbin/acme-client/create-httpd-env.sh
blob: af3a707660256c58450a61541eb1751ab930103b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
set -e
mkdir -p $1/www/htdocs
mkdir -p $1/www/acme
mkdir -p $1/www/logs
mkdir -p $1/etc/acme
mkdir -p $1/etc/ssl/acme/private
cat <<END > $1/etc/httpd.conf
chroot "$1/www"
server "default" {
	listen on "*" port 80
	location "/.well-known/acme-challenge/*" {
		root "/acme"
		root strip 2
	}
}
END