cannot get cgit display anything except the repo listing page

Ariel Costas ariel at
Fri Aug 13 21:24:58 UTC 2021

It does seem like a problem when calling the CGI script. Perhaps you
could debug what cgit is getting from your NGINX?

You could try creating a new file `/var/www/htdocs/cgit/debug.cgi` with
the contents:

    echo "Content-Type: text/plain"
    echo ""

What this script does is: run bash, respond with the Content-Type header
and a plaintext body containing all the environment variables passed by

Give it execution permissions and owned by www-data, then point NGINX to
that script and visit the site. Check the QUERY_STRING, PATH_INFO and
HTTP_HOST and see if they are the correct ones. Is there something strange?

Ariel Costas (
Encrypt your email --
  GnuPG public key --
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <>

More information about the CGit mailing list