diff options
| author | Paul Buetow <openbsd@mx.buetow.org> | 2021-12-31 22:52:53 +0100 |
|---|---|---|
| committer | Paul Buetow <openbsd@mx.buetow.org> | 2021-12-31 22:52:53 +0100 |
| commit | 9eae194a94dfb88a341a7429e23fa34927970fd0 (patch) | |
| tree | a444be8ea6c969213c05c3f668ec2a09681c063a | |
| parent | 87c527aba53b58b384b8071bb6a7e05acd75237a (diff) | |
redirection
| -rw-r--r-- | openbsd/blowfish.buetow.org/etc/httpd.conf | 17 |
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 } } |
