public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] simple web server with content negotiation feature
@ 2008-01-26 10:59 Zhang Weiwu
  2008-01-26 15:16 ` Mick
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Weiwu @ 2008-01-26 10:59 UTC (permalink / raw
  To: gentoo-user

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?
	2. Can you please tell me how do you usually find out if some
of the packages in portage can do content negotiation?

-- 
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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] simple web server with content negotiation feature
  2008-01-26 10:59 [gentoo-user] simple web server with content negotiation feature Zhang Weiwu
@ 2008-01-26 15:16 ` Mick
  0 siblings, 0 replies; 3+ messages in thread
From: Mick @ 2008-01-26 15:16 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2050 bytes --]

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.  (Apache uses the 
module mod_negotiation which is compiled in by default).  Have you looked at 
www-servers/lighttpd, or www-servers/thttpd?

> 	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.

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.

HTH.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] simple web server with content negotiation feature
       [not found] ` <9PUZc-418-7@gated-at.bofh.it>
@ 2008-01-28  2:26   ` Zhang Weiwu
  0 siblings, 0 replies; 3+ messages in thread
From: Zhang Weiwu @ 2008-01-28  2:26 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-01-28  2:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-26 10:59 [gentoo-user] simple web server with content negotiation feature Zhang Weiwu
2008-01-26 15:16 ` Mick
     [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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox