Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files)?
Date: Sat, 12 Nov 2011 11:56:46
Message-Id: 201111121155.41045.michaelkintzios@gmail.com
In Reply to: Re: [gentoo-user] The LIGHTEST web server (just for serving files) ? by Florian Philipp
1 On Saturday 12 Nov 2011 09:14:27 Florian Philipp wrote:
2 > Am 12.11.2011 10:01, schrieb Pandu Poluan:
3 > > On Sat, Nov 12, 2011 at 15:46, Nilesh Govindarajan <contact@××××××××.com>
4 wrote:
5 > >> On Sat 12 Nov 2011 01:54:10 PM IST, Pandu Poluan wrote:
6 > >>> What is the *LIGHTEST* web server package you know for gentoo?
7 > >>>
8 > >>> I just want to serve the distfiles, so no CGI / PHP /
9 > >>> whathaveyouscripting support is needed.
10 > >>>
11 > >>> Preferably, with logging so I can see which packages I missed, but not
12 > >>> necessary.
13 > >>>
14 > >>> Rgds,
15 > >>
16 > >> nginx.
17 > >> You can disable fastcgi/etc using use flags.
18 > >
19 > > What about www-servers/fnord ?
20 > >
21 > > Its website[1] claims that its binaries are less than 20 kB[2]
22 > >
23 > > [1] http://www.fefe.de/fnord/
24 > > [2] http://www.fefe.de/fnord/others.html
25 > >
26 > > Rgds,
27 >
28 > Talking about small: `/bin/busybox httpd`
29 >
30 > I goes without saying that this is not meant to be web-facing.
31 >
32 > Most things are explained in the --help output but the config file
33 > format is only explained in a source code comment. See below:
34 >
35 > httpd.conf has the following format:
36 >
37 > H:/serverroot # define the server root. It will override -h
38 > A:172.20. # Allow address from 172.20.0.0/16
39 > A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127
40 > A:10.0.0.0/255.255.255.128 # Allow any address that previous set
41 > A:127.0.0.1 # Allow local loopback connections
42 > D:* # Deny from other IP connections
43 > E404:/path/e404.html # /path/e404.html is the 404 (not found) error page
44 > I:index.html # Show index.html when a directory is requested
45 >
46 > P:/url:[http://]hostname[:port]/new/path
47 > # When /urlXXXXXX is requested, reverse proxy
48 > # it to http://hostname[:port]/new/pathXXXXXX
49 >
50 > /cgi-bin:foo:bar
51 > # Require user foo, pwd bar on urls starting with /cgi-bin/
52 > /adm:admin:setup
53 > # Require user admin, pwd setup on urls starting with /adm/
54 > adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/
55 > .au:audio/basic # additional mime type for audio.au files
56 > *.php:/path/php # run xxx.php through an interpreter
57 >
58 > A/D may be as a/d or allow/deny - only first char matters.
59 > Deny/Allow IP logic:
60 > - Default is to allow all (Allow all (A:*) is a no-op).
61 > - Deny rules take precedence over allow rules.
62 > - "Deny all" rule (D:*) is applied last.
63
64 I've been using boa just for this purpose for years:
65
66 * www-servers/boa
67 Available versions:
68 ~ 0.94.14_rc21 "~x86 ~sparc ~mips ~ppc ~amd64" [doc]
69 Homepage: http://www.boa.org/
70 Description: A very small and very fast http daemon.
71
72 It can be easily locked down for internet facing roles.
73
74 I've also used thttpd (you can throttle its bandwidth if that's important in
75 your network), but it's probably more than required for this purpose:
76
77 * www-servers/thttpd
78 Available versions:
79 2.25b-r7 "amd64 ~hppa ~mips ppc sparc x86 ~x86-fbsd" [static]
80 ~ 2.25b-r8 "~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~x86-fbsd"
81 [static]
82 Homepage: http://www.acme.com/software/thttpd/
83 Description: Small and fast multiplexing webserver.
84 --
85 Regards,
86 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] The LIGHTEST web server (just for serving files)? Pandu Poluan <pandu@××××××.info>