summaryrefslogtreecommitdiff
path: root/frontends/etc
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-02-07 20:52:34 +0200
committerPaul Buetow <paul@buetow.org>2025-02-07 20:52:34 +0200
commit271e9d7e6efba1ef843d49d67edb3d42c2b03583 (patch)
treef9ecf6f098d1a42bb717d1231d813884e3afc4a9 /frontends/etc
parent8c76870e0724f9d8bcb82b042b7f3efe74cc9f58 (diff)
add blog subdomains
Diffstat (limited to 'frontends/etc')
-rw-r--r--frontends/etc/httpd.conf.tpl10
1 files changed, 10 insertions, 0 deletions
diff --git a/frontends/etc/httpd.conf.tpl b/frontends/etc/httpd.conf.tpl
index 4acf280..d37049c 100644
--- a/frontends/etc/httpd.conf.tpl
+++ b/frontends/etc/httpd.conf.tpl
@@ -65,6 +65,16 @@ server "<%= $prefix %>buetow.org" {
}
}
+# Redirect blog to foo.zone
+<% for my $prefix (@prefixes) { -%>
+server "<%= $prefix %>blog.buetow.org" {
+ listen on * port 8080
+ log style forwarded
+ location * {
+ block return 302 "https://foo.zone$REQUEST_URI"
+ }
+}
+
server "<%= $prefix %>snonux.foo" {
listen on * port 8080
log style forwarded