From 3901cfdbb0b03a14020172ef68d3246fe0e0cc7a Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 30 Jan 2022 11:32:46 +0100 Subject: add tmp.buetow.org --- openbsd/frontends/etc/httpd.conf | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/openbsd/frontends/etc/httpd.conf b/openbsd/frontends/etc/httpd.conf index 0228967..bb993ff 100644 --- a/openbsd/frontends/etc/httpd.conf +++ b/openbsd/frontends/etc/httpd.conf @@ -65,6 +65,11 @@ server "paul.buetow.org" { block return 302 "https://foo.zone/contact-information.html" } +server "tmp.buetow.org" { + listen on * port 80 + block return 302 "https://buetow.org/tmp/" +} + server "buetow.org" { alias "www.buetow.org" listen on * tls port 443 @@ -72,7 +77,13 @@ server "buetow.org" { certificate "/etc/ssl/buetow.org.fullchain.pem" key "/etc/ssl/private/buetow.org.key" } - block return 302 "https://foo.zone$REQUEST_URI" + root "/htdocs/buetow.org" + location match "/tmp/.*" { + directory auto index + } + location match "/.*" { + block return 302 "https://foo.zone$REQUEST_URI" + } } server "dtail.dev" { -- cgit v1.2.3