From owner-freebsd-cvsweb@FreeBSD.ORG Thu May 15 17:28:32 2008 Return-Path: Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9BF131065782 for ; Thu, 15 May 2008 17:28:32 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: from smtp107.biz.mail.re2.yahoo.com (smtp107.biz.mail.re2.yahoo.com [206.190.52.176]) by mx1.freebsd.org (Postfix) with SMTP id 534448FC1E for ; Thu, 15 May 2008 17:28:32 +0000 (UTC) (envelope-from noackjr@alumni.rice.edu) Received: (qmail 91659 invoked from network); 15 May 2008 17:28:31 -0000 Received: from unknown (HELO optimator.noacks.org) (noackjr@supercrime.org@66.56.30.84 with login) by smtp107.biz.mail.re2.yahoo.com with SMTP; 15 May 2008 17:28:31 -0000 X-YMail-OSG: 4Gf855AVM1mEh2ZABtd.Rjtbn3ynBJX0IOwDUA0a2cxfyu3WHObBhSjy9QXRJMJzHDG7sMQrB33ruPMO3uufqbDriDdqqZNRMQd2vhAShA7kunUSRUg2aniMYhrhU.7XwEg- X-Yahoo-Newman-Property: ymail-3 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id 020136268; Thu, 15 May 2008 13:28:31 -0400 (EDT) X-Virus-Scanned: amavisd-new at noacks.org Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id jbcbrR3FkkEv; Thu, 15 May 2008 13:28:29 -0400 (EDT) Received: from www.noacks.org (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id F304A60F3; Thu, 15 May 2008 13:28:28 -0400 (EDT) Received: from 192.168.1.10 (SquirrelMail authenticated user noackjr) by www.noacks.org with HTTP; Thu, 15 May 2008 13:28:29 -0400 (EDT) Message-ID: <57219.192.168.1.10.1210872509.squirrel@www.noacks.org> Date: Thu, 15 May 2008 13:28:29 -0400 (EDT) From: "Jonathan Noack" To: "Douglas E. Warner" User-Agent: SquirrelMail/1.4.13 MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20080515132829_52004" X-Priority: 3 (Normal) Importance: Normal Cc: freebsd-cvsweb@freebsd.org Subject: Re: Using cvsweb as base path in virtualhost X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 May 2008 17:28:32 -0000 ------=_20080515132829_52004 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit On Thu, May 15, 2008 09:50, Douglas E. Warner wrote: > On Thursday 15 May 2008 00:08:36 Jonathan Noack wrote: >>> ScriptAliasMatch ^/?$ /path/to/cvsweb.cgi >>> ScriptAliasMatch ^(.*) /path/to/cvsweb.cgi$1 >> >> You don't need the first ScriptAliasMatch line. The second is >> effectively a superset of the first. I use that exact syntax and it >> works correctly for me. Try commenting out the first line and see what >> happens. > > Thanks for the response. Unfortunately in my current setup the main page > didn't work without the first line. > > I was able to simplify the apache configuration by trying this: > > ScriptAlias / /path/to/cvsweb.cgi/ > > But unfortunately I still get the strange redirection. > > I forgot to mention previously that I'm using cvsweb 3.0.6. Doug, I found the issue with using CVSweb as the base path. There is some old code in to work around "thttpd stupidity". This is tripping the redirect code and causing the strange behavior. Please try the attached patch to cvsweb.cgi. It should work with your current ScriptAlias line; if not, try this one: ScriptAliasMatch ^(.*) /path/to/cvsweb.cgi$1 I'll need to test with recent thttpd versions before rolling this into a new release. Regards, -Jonathan ------=_20080515132829_52004 Content-Type: application/octet-stream; name="cvsweb-root.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="cvsweb-root.patch" LS0tIGN2c3dlYi5jZ2kub3JpZwkyMDA4LTA1LTE1IDEzOjE0OjM5LjAwMDAwMDAwMCAtMDQwMAor KysgY3Zzd2ViLmNnaQkyMDA4LTA1LTE1IDEzOjE4OjE0LjAwMDAwMDAwMCAtMDQwMApAQCAtMzAy LDExICszMDIsMTEgQEAKICRzY3JpcHRuYW1lICAgID1+IHN8Xi8qfC98OwogCiAjIExldCdzIHdv cmthcm91bmQgdGh0dHBkJ3Mgc3R1cGlkaXR5Li4KLWlmICgkc2NyaXB0bmFtZSA9fiBtfC8kfCkg ewotICAkcGF0aGluZm8gLj0gJy8nOwotICBteSAkcmUgPSBxdW90ZW1ldGEgJHBhdGhpbmZvOwot ICAkc2NyaXB0bmFtZSA9fiBzLyRyZSQvLzsKLX0KKyNpZiAoJHNjcmlwdG5hbWUgPX4gbXwvJHwp IHsKKyMgICRwYXRoaW5mbyAuPSAnLyc7CisjICBteSAkcmUgPSBxdW90ZW1ldGEgJHBhdGhpbmZv OworIyAgJHNjcmlwdG5hbWUgPX4gcy8kcmUkLy87CisjfQogCiAjICRzY3JpcHRuYW1lIDogdGhl IFVSSSBlc2NhcGVkIHBhdGggdG8gdGhpcyBzY3JpcHQKICMgJHdoZXJlICAgICAgOiB0aGUgcGF0 aCBpbiB0aGUgQ1ZTIHJlcG9zaXRvcnkgKHdpdGhvdXQgbGVhZGluZyAvLCBvciBvbmx5IC8pCg== ------=_20080515132829_52004--