List for cgit developers and users
 help / color / mirror / Atom feed
From: Ariel Costas <ariel@costas.dev>
To: cgit@lists.zx2c4.com
Subject: Re: cannot get cgit display anything except the repo listing page
Date: Fri, 13 Aug 2021 21:24:58 +0000	[thread overview]
Message-ID: <0102017b41675ea3-e22bef87-7635-4723-8358-3b350cf2d2f1-000000@eu-west-1.amazonses.com> (raw)
In-Reply-To: <20210813223903.d4faee5c2f49c9112246611a@web.de> (message from Torsten Kuehnel on Fri, 13 Aug 2021 22:39:03 +0200)

[-- Attachment #1: Type: text/plain, Size: 816 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 227 bytes --]

  reply	other threads:[~2021-08-13 21:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-13  7:12 Torsten Kuehnel
2021-08-13 11:33 ` Ariel Costas
2021-08-13 20:39   ` Torsten Kuehnel
2021-08-13 21:24     ` Ariel Costas [this message]
2021-08-13 22:03       ` Torsten Kuehnel
2021-08-14 22:10         ` Ariel Costas
2021-08-15 19:49           ` Torsten Kuehnel
2021-08-15 22:56             ` june
2021-08-16 11:50             ` Ariel Costas
2021-08-13 21:22 ` Torsten Kuehnel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0102017b41675ea3-e22bef87-7635-4723-8358-3b350cf2d2f1-000000@eu-west-1.amazonses.com \
    --to=ariel@costas.dev \
    --cc=cgit@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).