summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <openbsd@mx.buetow.org>2021-12-31 22:52:53 +0100
committerPaul Buetow <openbsd@mx.buetow.org>2021-12-31 22:52:53 +0100
commit9eae194a94dfb88a341a7429e23fa34927970fd0 (patch)
treea444be8ea6c969213c05c3f668ec2a09681c063a
parent87c527aba53b58b384b8071bb6a7e05acd75237a (diff)
redirection
-rw-r--r--openbsd/blowfish.buetow.org/etc/httpd.conf17
1 files changed, 16 insertions, 1 deletions
diff --git a/openbsd/blowfish.buetow.org/etc/httpd.conf b/openbsd/blowfish.buetow.org/etc/httpd.conf
index acbc2cd..5463a56 100644
--- a/openbsd/blowfish.buetow.org/etc/httpd.conf
+++ b/openbsd/blowfish.buetow.org/etc/httpd.conf
@@ -5,7 +5,22 @@ server "default" {
request strip 2
}
location * {
- block return 302 "https://$HTTP_HOST$REQUEST_URI"
+ block return 302 "https://snonux.de"
+ }
+}
+
+server "default" {
+ listen on * tls port 443
+ tls {
+ certificate "/etc/ssl/buetow.org.fullchain.pem"
+ key "/etc/ssl/private/buetow.org.key"
+ }
+ location * {
+ block return 302 "https://snonux.de"
+ }
+ location "/.well-known/acme-challenge/*" {
+ root "/acme"
+ request strip 2
}
}