From 25cf929e41067c92e4273fbdeab68b63779c4472 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Sun, 4 Oct 2026 07:47:50 -0700 Subject: Remove extra / location in httpd cgit conf and remove server header The extra location was useless --- roles/obsd_cgit/templates/httpd.d/cgit.conf.j2 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'roles/obsd_cgit') 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" -- cgit v1.2.3