From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,MISSING_HEADERS, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18206 invoked from network); 7 Mar 2023 19:17:08 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 7 Mar 2023 19:17:08 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 8dce4b96; Tue, 7 Mar 2023 19:16:51 +0000 (UTC) Return-Path: Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [2607:f8b0:4864:20::429]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id adfa343f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 7 Mar 2023 19:16:49 +0000 (UTC) Received: by mail-pf1-x429.google.com with SMTP id a7so8737100pfx.10 for ; Tue, 07 Mar 2023 11:16:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; t=1678216608; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=mXs5IgMXIzptt9OYv/kOp34cf+Bn876fkov9KCQd1qs=; b=hddS8r1ANpisY8iXcCQJHSRbep7nz/XgZ4eX/k8rHn37BQ1gmkbUyFn/l3jXKGJ48x 6xZG/YliHxOE7Nff7dj5WguBRzba32gJne7xZFvh4onjyZYIldHTw73cN5Jxl6Q7RvKi UhlkBNYGJwyA5FWS8UYS29zcUqfyzVOmFqEDiRCa5Hhd6Lgxt6PEBkrAbqIZjqlEcquX 56z7I3iBHMCOGXHXapApmEJ6lTpBHZsssUzxPu6RP90+DsC+Sw5Ebd9IHSAHdwK3Wm/4 C2Aly75O3UmCjSttq2Lz1N+C6+LCJSkZwCe7HCBhVAce+3vNl9+oaOEvq4gAKF3pr+96 j75A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678216608; h=content-transfer-encoding:cc:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mXs5IgMXIzptt9OYv/kOp34cf+Bn876fkov9KCQd1qs=; b=7EO/HWs59QLA+CCcyJ9Qrwtn7B9MGSLIxXBfzx46g2eV28HSnNBbgBpxY+WLnOXyaL Mimkts+xKRZDd5ZJ8+oxRZD1JZm7InTZaQbiDz7+1babj9ftsE8ER/4J59O7fOKUM4j5 H6dTaRVb5Gshi1mCSkpOGYIhy8b9kIM8rVC/Bq4eyQ0422KjsVFt9ktxQsbLafdyOOnE 8teb+LZ31fWGFabATUDa9Ynw0Zcq1l+onN+FvcpPnFIRUXLd+k3GWNBqyKQPBZ1B2hYT XUPtJRwLTnmjc12KF9Rk0CsK8X5OtwqTL7t/sZmCyLg7rST5ppKYPSzhnbdjhD2Mrsxy Ocqg== X-Gm-Message-State: AO0yUKVpPaZRIt9p4DpO1m6Jw3jYwEHkytL+0rijGJgs5DMJfKcEeiAu IS7m0xo5VOQru5mA+0ELWbms/ck2mNqiceSaQP5hbW7r6EI= X-Google-Smtp-Source: AK7set9JdGKxFqoZSW58dyj/kqB5pSHnY6b32rciWBv+VuTCZ1MdW35Po1K1FnJh0X0tFKjCdH5fCESqJyFrr27pxBM= X-Received: by 2002:a62:a512:0:b0:593:fcfb:208b with SMTP id v18-20020a62a512000000b00593fcfb208bmr6609267pfm.3.1678216607798; Tue, 07 Mar 2023 11:16:47 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Andreas Mahling Date: Tue, 7 Mar 2023 20:16:35 +0100 Message-ID: Subject: Re: cgit with busybox httpd Cc: cgit@lists.zx2c4.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" 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 : > > [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). >