cannot get cgit display anything except the repo listing page

Ariel Costas ariel at costas.dev
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:

    #!/bin/bash
    echo "Content-Type: text/plain"
    echo ""
    printenv

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

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 (https://costas.dev)
Encrypt your email -- https://emailselfdefense.org/
  GnuPG public key -- https://costas.dev/pgp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20210813/53f6b934/attachment.sig>


More information about the CGit mailing list