diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-04 07:47:50 -0700 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2026-10-11 18:36:50 -0700 |
| commit | 25cf929e41067c92e4273fbdeab68b63779c4472 (patch) | |
| tree | 6338b06da948682267ba3e027e113bf6a6dc5d03 | |
| parent | Fix cgit repos dir (diff) | |
| download | site-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.j2 | 7 |
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" |