summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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" {