diff options
| author | Paul Buetow <openbsd@mx.buetow.org> | 2022-01-30 11:32:46 +0100 |
|---|---|---|
| committer | Paul Buetow <openbsd@mx.buetow.org> | 2022-01-30 11:32:46 +0100 |
| commit | 3901cfdbb0b03a14020172ef68d3246fe0e0cc7a (patch) | |
| tree | 06826ba4c87152e15c43cdcc1365057fdd6f785c | |
| parent | af731bc87ef2a5d29e6ead152a351f856d7c9b5c (diff) | |
add tmp.buetow.org
| -rw-r--r-- | openbsd/frontends/etc/httpd.conf | 13 |
1 files changed, 12 insertions, 1 deletions
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" { |
