diff options
| author | Paul Buetow <openbsd@mx.buetow.org> | 2021-12-28 18:30:08 +0100 |
|---|---|---|
| committer | Paul Buetow <openbsd@mx.buetow.org> | 2021-12-28 18:30:08 +0100 |
| commit | c59c200f2a7e6a0bde6b6b32df0ad90215ceab46 (patch) | |
| tree | 2b546f207c7688de1db5e406cdbdc27ad619b7b3 /openbsd | |
add httpd config
Diffstat (limited to 'openbsd')
| -rw-r--r-- | openbsd/blowfish.buetow.org/etc/httpd.conf | 57 |
1 files changed, 57 insertions, 0 deletions
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 + } +} |
