[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    Re: cgit with busybox httpd
From:       Andreas Mahling <andreas.mahling () googlemail ! com>
Date:       2023-03-07 19:16:35
Message-ID: CAF6j0WAY0gb_Y91D-nQNDz=6HGZfwoF9AJVvom--dL_gW6NhYQ () mail ! gmail ! com
[Download RAW message or body]

I've preferred to patch busybox httpd.
http://lists.busybox.net/pipermail/busybox/2023-March/090197.html

thanks for your help
Andreas
Am Mo., 6. M=C3=A4rz 2023 um 15:42 Uhr schrieb John Keeping <john@keeping.m=
e.uk>:
>
> [Cc: add the mailing list back in]
>
> On Mon, Mar 06, 2023 at 01:01:50PM +0100, Andreas Mahling wrote:
> > It seems the 404 is generated by httpd, I think because the url ends wi=
th a
> > slash httpd treats the part after cgit.cgi not as PATH_INFO (as it shou=
ld)
> > but as a directory. So this seems more a fault of httpd to me.
> >
> > Sorry, but I don't understand how to put into QUERY_STRING what now goe=
s
> > into PATH_INFO. Do you mean the virtual-root option in cgitrc?
> > It is already commented out in my setup, but cgit builds the url with
> > PATH_INFO part anyway.
>
> To disable that feature you would have the patch the CGit source and
> build your own cgit binary.
>
> There is code in cmd_main() which automatically calculates the virtual
> root from other environment variables if they are provided (and it seems
> that httpd does provide this detail to CGI scripts).
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic