summaryrefslogtreecommitdiff
path: root/openbsd
diff options
context:
space:
mode:
authorPaul Buetow <openbsd@mx.buetow.org>2022-01-30 11:32:46 +0100
committerPaul Buetow <openbsd@mx.buetow.org>2022-01-30 11:32:46 +0100
commit3901cfdbb0b03a14020172ef68d3246fe0e0cc7a (patch)
tree06826ba4c87152e15c43cdcc1365057fdd6f785c /openbsd
parentaf731bc87ef2a5d29e6ead152a351f856d7c9b5c (diff)
add tmp.buetow.org
Diffstat (limited to 'openbsd')
-rw-r--r--openbsd/frontends/etc/httpd.conf13
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" {