diff --git a/plinth/modules/gitweb/data/etc/apache2/conf-available/gitweb-freedombox.conf b/plinth/modules/gitweb/data/etc/apache2/conf-available/gitweb-freedombox.conf index e67340bcb..726fd5820 100644 --- a/plinth/modules/gitweb/data/etc/apache2/conf-available/gitweb-freedombox.conf +++ b/plinth/modules/gitweb/data/etc/apache2/conf-available/gitweb-freedombox.conf @@ -57,9 +57,7 @@ Alias /gitweb /usr/share/gitweb SetEnvIfExpr "%{QUERY_STRING} =~ /service=git-receive-pack/" AUTHREQUIRED SetEnvIfExpr "%{REQUEST_URI} =~ /git-receive-pack$/" AUTHREQUIRED # Authentication is required for any operation if repository is private. - - SetEnvIfExpr true AUTHREQUIRED - + SetEnvIfExpr "%{REQUEST_URI} =~ m#^/gitweb/([^/]+)# && ( -f '/var/lib/git/$1/private' || -f '/var/lib/git/$1.git/private' )" AUTHREQUIRED # Either authentication is not required for this operation and repository # combination, or...