From c59c200f2a7e6a0bde6b6b32df0ad90215ceab46 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Tue, 28 Dec 2021 18:30:08 +0100 Subject: add httpd config --- openbsd/blowfish.buetow.org/etc/httpd.conf | 57 ++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 openbsd/blowfish.buetow.org/etc/httpd.conf (limited to 'openbsd') diff --git a/openbsd/blowfish.buetow.org/etc/httpd.conf b/openbsd/blowfish.buetow.org/etc/httpd.conf new file mode 100644 index 0000000..4ef26ee --- /dev/null +++ b/openbsd/blowfish.buetow.org/etc/httpd.conf @@ -0,0 +1,57 @@ +server "snonux.de" { + listen on * port 80 + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { + block return 302 "https://$HTTP_HOST$REQUEST_URI" + } +} + +server "snonux.de" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/snonux.de.fullchain.pem" + key "/etc/ssl/private/snonux.de.key" + } + location "/*" { + root "/htdocs/gemtexter/snonux.de" + directory auto index + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } +} + +server "buetow.org" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/buetow.org.fullchain.pem" + key "/etc/ssl/private/buetow.org.key" + } + location "/*" { + root "/htdocs/gemtexter/buetow.org" + directory auto index + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } +} + +server "dtail.dev" { + listen on * tls port 443 + tls { + certificate "/etc/ssl/dtail.dev.fullchain.pem" + key "/etc/ssl/private/dtail.dev.key" + } + location * { + block return 302 "https://github.dtail.dev" + } + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } +} -- cgit v1.2.3