From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JJJig-0000Ue-Qg for garchives@archives.gentoo.org; Mon, 28 Jan 2008 02:27:35 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61811E02E0; Mon, 28 Jan 2008 02:27:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 175D3E02E0 for ; Mon, 28 Jan 2008 02:27:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 9EB2F6547A for ; Mon, 28 Jan 2008 02:27:31 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -1.422 X-Spam-Level: X-Spam-Status: No, score=-1.422 required=5.5 tests=[AWL=-1.423, BAYES_50=0.001] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3-e+QTnk++3Y for ; Mon, 28 Jan 2008 02:27:24 +0000 (UTC) Received: from bossdog.realss.com (bossdog.realss.com [211.157.108.128]) by smtp.gentoo.org (Postfix) with ESMTP id D63D665483 for ; Mon, 28 Jan 2008 02:27:23 +0000 (UTC) Received: from localhost (unknown [127.0.0.1]) by bossdog.realss.com (Postfix) with ESMTP id ACDA91C0031 for ; Mon, 28 Jan 2008 10:27:31 +0800 (CST) Received: from bossdog.realss.com ([127.0.0.1]) by localhost (bossdog.realss.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01236-12 for ; Mon, 28 Jan 2008 10:27:30 +0800 (CST) Received: from esmeralda (unknown [59.53.245.136]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by bossdog.realss.com (Postfix) with ESMTP id AAC514CA7AD for ; Mon, 28 Jan 2008 10:27:29 +0800 (CST) Date: Mon, 28 Jan 2008 10:26:58 +0800 From: Zhang Weiwu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] simple web server with content negotiation feature Message-ID: <20080128102658.725e45e5@esmeralda> In-Reply-To: <9PUZc-418-7@gated-at.bofh.it> References: <9PR5j-5VI-13@gated-at.bofh.it> <9PUZc-418-7@gated-at.bofh.it> Organization: Real Softservice X-Mailer: Claws Mail 3.2.0 (GTK+ 2.12.1; powerpc-unknown-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archives-Salt: ed4321f0-0e31-4977-8587-ed2fe038f3ad X-Archives-Hash: a4ac766066daa3d98a8f0e48bff9d2c9 On Sat, 26 Jan 2008 16:20:10 +0100 Mick wrote: > On Saturday 26 January 2008, Zhang Weiwu wrote: > > Hello all. > > > > I am looking for a web server for my static website in-developing > > projects. I just want the basic features and easy-to-configure. > > However what I mean "basic" looks a bit different than other > > people's. I wish it to be able to do content negotiation (a.k.a. a > > browser asks for "my_mom" and gets my_mom.html.zh or my_mom.html.en > > depending on preferred language of the browser). I also wish it can > > handle HTTP 1.1. > > > > I could not find one. "eix -S negotiation" didn't get me any result. > > (on the other hand "aptitude search ~dnegotiation" did suggested me > > fnord can do content negotiation, although it's only partially > > implemented.) > > > > My question is: > > 1. Can you please suggest some web server that can do > > content negotiation, besides apache? > > "negotiation" is not a recognised USE flag: > > # euse -i negotiation > global use flags (searching: negotiation) > ************************************************************ > no matching entries found > > local use flags (searching: negotiation) > ************************************************************ > no matching entries found > > therefore I am not sure that any packages in portage use it. Dear Mick I looked up eix manual and found '-S' asks eix to search within description of the software. I noticed the description in portage is usually much shorter (1 line) than in Ubuntu, which means if the software has this feature, it's probably no space to write down all features list in description. Perhaps there is a 'long description' which I didn't discover yet. By 'eix -S negotiation" I am trying to search all package description containing the word 'negotiation' > uses the module mod_negotiation which is compiled in by default). > Have you looked at www-servers/lighttpd, or www-servers/thttpd? Thanks for the suggestions. I just had a look on their websites and didn't see they support content negotiation. I think I will just use apache which is big but I knew it already. > > > 2. Can you please tell me how do you usually find out if > > some of the packages in portage can do content negotiation? > > Sorry, can't help with this. Perhaps others more knowledgeable in > the features of different http servers can advise here. I would > think that it is a matter of searching in their respective project > websites and then reading their documentation for each package > under /usr/portage/www-servers/. Alternative, emerge, try it out, > unmerge and so on. Thanks for your time on explaining this in detail:) > BTW, I am not sure if some PHP scripting would offer this facility to > simpler http servers, which do not support it natively like apache. You are right PHP can do it. I wished to avoid the overhead of having apache or php, but now I think I just take it. -- Real Softservice Huateng Tower, Unit 1788 Jia 302 3rd area of Jinsong, Chao Yang Tel: +86 (10) 8773 0650 ext 603 Mobile: 135 9950 2413 http://www.realss.com -- gentoo-user@lists.gentoo.org mailing list