public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Zhang Weiwu <zhangweiwu@realss.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] simple web server with content negotiation feature
Date: Mon, 28 Jan 2008 10:26:58 +0800	[thread overview]
Message-ID: <20080128102658.725e45e5@esmeralda> (raw)
In-Reply-To: <9PUZc-418-7@gated-at.bofh.it>

On Sat, 26 Jan 2008 16:20:10 +0100
Mick <michaelkintzios@gmail.com> 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	other threads:[~2008-01-28  2:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <9PR5j-5VI-13@gated-at.bofh.it>
     [not found] ` <9PUZc-418-7@gated-at.bofh.it>
2008-01-28  2:26   ` Zhang Weiwu [this message]
2008-01-26 10:59 [gentoo-user] simple web server with content negotiation feature Zhang Weiwu
2008-01-26 15:16 ` Mick

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080128102658.725e45e5@esmeralda \
    --to=zhangweiwu@realss.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox