diff options
| author | Paul Buetow <paul@buetow.org> | 2022-01-05 11:32:09 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2022-01-05 11:32:09 +0000 |
| commit | 0b4a4cc1060fa055e638a01763b4a7e2d5880cbf (patch) | |
| tree | be46cfbea4bf59fde3778410cf0623b45a996fa9 | |
| parent | fc342e332548c3304be09359d8e0824324c7704b (diff) | |
refactor vhosts
| -rw-r--r-- | openbsd/frontends/etc/httpd.conf | 55 |
1 files changed, 29 insertions, 26 deletions
diff --git a/openbsd/frontends/etc/httpd.conf b/openbsd/frontends/etc/httpd.conf index 76e8afb..e1602bf 100644 --- a/openbsd/frontends/etc/httpd.conf +++ b/openbsd/frontends/etc/httpd.conf @@ -1,30 +1,5 @@ -server "default" { - listen on * port 80 - location "/.well-known/acme-challenge/*" { - root "/acme" - request strip 2 - } - location * { - 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 - } -} - server "snonux.de" { + alias "www.snonux.de" listen on * tls port 443 tls { certificate "/etc/ssl/snonux.de.fullchain.pem" @@ -41,6 +16,7 @@ server "snonux.de" { } server "buetow.org" { + alias "www.buetow.org" listen on * tls port 443 tls { certificate "/etc/ssl/buetow.org.fullchain.pem" @@ -69,3 +45,30 @@ server "dtail.dev" { request strip 2 } } + +server "default" { + listen on * port 80 + location "/.well-known/acme-challenge/*" { + root "/acme" + request strip 2 + } + location * { + 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 + } +} + |
