From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1937 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl 0.9.5 release and new website Date: Sat, 15 Sep 2012 23:26:58 -0400 Message-ID: <20120916032657.GA254@brightrain.aerifal.cx> References: <20120915081227.GD27715@brightrain.aerifal.cx> <20120915135340.GI9428@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347766543 7623 80.91.229.3 (16 Sep 2012 03:35:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Sep 2012 03:35:43 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1938-gllmg-musl=m.gmane.org@lists.openwall.com Sun Sep 16 05:35:47 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TD5e4-0000mu-K7 for gllmg-musl@plane.gmane.org; Sun, 16 Sep 2012 05:35:44 +0200 Original-Received: (qmail 7304 invoked by uid 550); 16 Sep 2012 03:35:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 7295 invoked from network); 16 Sep 2012 03:35:39 -0000 Content-Disposition: inline In-Reply-To: <20120915135340.GI9428@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:1937 Archived-At: On Sat, Sep 15, 2012 at 03:53:41PM +0200, Szabolcs Nagy wrote: > * Rich Felker [2012-09-15 04:12:27 -0400]: > > website, http://www.musl-libc.org, which is hopefully a lot more > > i would http redirect the non 'www.' prefixed host > to the 'www.' prefixed one > > with thttpd you can do it by using a musl-libc.org > cgi script like > > #!/bin/sh > U="http://www.musl-libc.org$PATH_INFO" Wow, thanks! I had no idea how this $PATH_INFO thing worked, but it's very nice. Is this thttpd-specific, or is it the generic way webservers work when a non-final path element is not a directory but instead a script? cgit is supposed to do something like this, but I couldn't get it to work so I hacked it to use the ugly old query-string style urls, but it would be a lot nicer if I could have just: http://git.musl-libc.org/musl/tree/README etc.. Rich