From 9a7f91fbcdccf087b96a304ce53fecb9a8fd5933 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Sat, 31 Aug 2024 11:27:34 -0700 Subject: Enable robots.txt on gitweb There is a standard one that comes with cgit to disable snapshots by robots, but it needed an alias so the web server would serve it. --- modules/cgit/templates/vhost.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/cgit/templates/vhost.conf b/modules/cgit/templates/vhost.conf index d2385084..5c1d99e7 100644 --- a/modules/cgit/templates/vhost.conf +++ b/modules/cgit/templates/vhost.conf @@ -1,4 +1,5 @@ Alias /cgit-data /usr/share/cgit +Alias /robots.txt /usr/share/cgit/robots.txt ScriptAliasMatch ^(.*) /var/www/cgi-bin/cgit$1 -- cgit v1.2.1