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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 855 invoked from network); 6 Mar 2023 10:13:41 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 6 Mar 2023 10:13:41 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id fd465cc3; Mon, 6 Mar 2023 10:13:24 +0000 (UTC) Return-Path: Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [2607:f8b0:4864:20::1030]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 5f9a606f (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Mon, 6 Mar 2023 10:13:23 +0000 (UTC) Received: by mail-pj1-x1030.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso8350069pjs.3 for ; Mon, 06 Mar 2023 02:13:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; t=1678097602; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=+EdEahapgSWTt/bi2/p+GdXSSAViuxBVaz23yYzLfRI=; b=lRgrDZ8saiGIBBhSygq5bdWGwhI2P3RMhhHTzyO+z1aobEWPbDV2ZHgzNBfDGZ7zcV aOzr8TtvEFF+mdakEdpeAv3P+/TxdFzDKLCo9YLRlcIhzWOqtx7JC6HIrmC0gboAlXu1 ++g2OUR+9HhFBfVOkNZ2IRj1U4Sl2oiKUp9LH8yTV3XNRRtaxwhAM4rxQsTL1d+xNHqi gpgbHIv7YuJLzX5HvlIIKtCGbNSMQ5/5Atsf/RheyZund8nCmxxU8V+xbt9CbDC63U1N cv9arPkepepM22PC63AX5uhl0OLNrP50r0MNhg3anyoEi5KNFOMm3JNLhJOzuZmpV1tJ 5oUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678097602; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=+EdEahapgSWTt/bi2/p+GdXSSAViuxBVaz23yYzLfRI=; b=6vUSiXzc+V9tHoMErvX1Q1Yj9gPYhaH0zUn2M8F3bAEoC3HQ+EF2MB1B+/+osqLNgt awwXKPbfnZCL8ncav5eIM0BBeKRwl/5hoOPVObo4g260fjvzBCGxtVuLlc7t7Kk2sLF1 IOlhz0aVjdis152ru93EA364Dg6hNqiIfLxnAiZPKIDH48u48XG5WasI7Et8SBTENBb8 H9ELmn1FZqp0LGPlea6JbCgNdNzxQgGmgMLFtdMbUti5VydXAZROpWxKSR6P4z3xLUno 2FLQpWYewGII3TDpArgnPRX5Pw9VY9PbXGQxTCQ+dQ6Z1P7vkyNVGZbnt7Qq+yxMeOXh Bbtg== X-Gm-Message-State: AO0yUKUK5s/WuKdSQlkGumYXlATeVuiUn0Eltah1qFPyj11KtvNerkPV neVQvJArTPQ16FLPmEqL0JCL2BkFKbJCtELJ+ZbcywYQC2M= X-Google-Smtp-Source: AK7set/6qRNZq0uiFTQ/FKZMRnjQGDwbc9hesGnAuQlzuOrSKFDveus8nrmf4wOYTkWmlXkebilGkQt2CUI3PBhd3VM= X-Received: by 2002:a17:90a:5993:b0:233:b520:1544 with SMTP id l19-20020a17090a599300b00233b5201544mr5910130pji.0.1678097601942; Mon, 06 Mar 2023 02:13:21 -0800 (PST) MIME-Version: 1.0 From: Andreas Mahling Date: Mon, 6 Mar 2023 11:13:10 +0100 Message-ID: Subject: cgit with busybox httpd To: cgit@lists.zx2c4.com Content-Type: text/plain; charset="UTF-8" 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" 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