From: Andreas Mahling <andreas.mahling@googlemail.com>
To: cgit@lists.zx2c4.com
Subject: cgit with busybox httpd
Date: Mon, 6 Mar 2023 11:13:10 +0100 [thread overview]
Message-ID: <CAF6j0WA=F_k-g-DbYehj=26DOzRp_Lm=bDXyURqnwp686NPwrg@mail.gmail.com> (raw)
hello,
I'm in the process to configure a cgit instance for my private network at home.
Because my internet router will be the host for git and cgit, I'm
looking for a ligthweight setup.
I would like to use busybox httpd as webserver, which has a very low
footprint and supports cgi, but no other fancy bells and whistles,
especially no url rewrite.
It works in principle, but there is a problem with the URLs generated
by cgit: they seem always containing a trailing slash. This leads to a
404 error thrown by httpd. If I manually remove the slash, everyting
is OK.
Example given:
http://git/cgi-bin/cgit.cgi/linuxadmin.git/ -> 404
http://git/cgi-bin/cgit.cgi/linuxadmin.git -> Page ist shown
Is there a way to tell cgit to give up the trailing slash? I'm running
cgit-1.2.3-r3 on Alpine 3.17.2
Any help greatly appreciated!
BTW: I've also tried lighttp, which had no problem with trailing
slashes, but is more heavyweight than busybox.
Best Regards
Andreas
next reply other threads:[~2023-03-06 10:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-06 10:13 Andreas Mahling [this message]
2023-03-06 11:41 ` John Keeping
[not found] ` <CAF6j0WAEvS4AeX-pjEOnytt5SQ8vbguOhjX6VmVxEJ8rJ0x9rA@mail.gmail.com>
2023-03-06 14:42 ` John Keeping
2023-03-07 19:16 ` Andreas Mahling
2023-03-06 14:31 Andreas Mahling
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='CAF6j0WA=F_k-g-DbYehj=26DOzRp_Lm=bDXyURqnwp686NPwrg@mail.gmail.com' \
--to=andreas.mahling@googlemail.com \
--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).