aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-10-04 07:47:50 -0700
committerEugene Triguba <hello@eugenetriguba.com>2026-10-11 18:36:50 -0700
commit25cf929e41067c92e4273fbdeab68b63779c4472 (patch)
tree6338b06da948682267ba3e027e113bf6a6dc5d03
parentFix cgit repos dir (diff)
downloadsite-configs-25cf929e41067c92e4273fbdeab68b63779c4472.zip
Remove extra / location in httpd cgit conf and remove server header
The extra location was useless
-rw-r--r--roles/obsd_cgit/templates/httpd.d/cgit.conf.j27
1 files changed, 2 insertions, 5 deletions
diff --git a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2 b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
index a7d0385..206525b 100644
--- a/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
+++ b/roles/obsd_cgit/templates/httpd.d/cgit.conf.j2
@@ -11,11 +11,8 @@ server "{{ cgit_domain }}" {
no fastcgi
}
- # Explicitly route root (/) to cgit via fastcgi
- location "/" {
- root "/cgi-bin/cgit.cgi"
- fastcgi socket "/run/slowcgi.sock"
- }
+ # Don't send a "Server: OpenBSD httpd" header.
+ no banner
# Route any other cgit paths/actions via fastcgi
root "/cgi-bin/cgit.cgi"