diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-10 15:56:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-10 15:56:49 +0300 |
| commit | 9c2997d5e5fd4e656fe2bbbbd13672288b8b592b (patch) | |
| tree | 034af914c8a7c4e186c586768fb4149f8d12c84a /frontends/etc/httpd.conf.tpl | |
| parent | 7e58ff1737ed72eef05b107ac0390227bec69b39 (diff) | |
snonux.foo: route to Pi backends at /snonux, redirect www
- relayd: route www.snonux.foo to localhost for redirect, keep bare/standby on f3s_static_proxy
- httpd: www.snonux.foo returns 302 redirect to snonux.foo
- gogios: monitor pi0/pi1 via wg0.wan.buetow.org instead of lan.buetow.org
- AGENTS.md: document Pi lighttpd Host-based virtual hosting pattern
Amp-Thread-ID: https://ampcode.com/threads/T-019d7766-909d-741c-bcb9-1e1e931f1e1b
Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'frontends/etc/httpd.conf.tpl')
| -rw-r--r-- | frontends/etc/httpd.conf.tpl | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl index 5f4a769..376692f 100644 --- a/frontends/etc/httpd.conf.tpl +++ b/frontends/etc/httpd.conf.tpl @@ -102,9 +102,15 @@ server "<%= $prefix %>blog.buetow.org" { server "<%= $prefix %>snonux.foo" { listen on * port 8080 - log style forwarded + log style forwarded location * { - block return 302 "https://foo.zone/about$REQUEST_URI" + <% if ($prefix eq 'www.') { -%> + block return 302 "https://snonux.foo$REQUEST_URI" + <% } else { -%> + # Same fallback as f3s.buetow.org when static Pis are unreachable (via f3s_static_proxy chain) + request rewrite "/index.html" + root "/htdocs/f3s_fallback" + <% } -%> } } |
