On Sat, 26 Jan 2008 16:20:10 +0100
Mick <[EMAIL PROTECTED]> 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

Reply via email to