From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RPCCU-0003co-BP for garchives@archives.gentoo.org; Sat, 12 Nov 2011 11:56:46 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 82F7E21C03F; Sat, 12 Nov 2011 11:56:32 +0000 (UTC) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by pigeon.gentoo.org (Postfix) with ESMTP id C2F6221C021 for ; Sat, 12 Nov 2011 11:55:41 +0000 (UTC) Received: by wyg19 with SMTP id 19so996194wyg.40 for ; Sat, 12 Nov 2011 03:55:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:reply-to:to:subject:date:user-agent:references:in-reply-to :mime-version:content-type:content-transfer-encoding:message-id; bh=H0JVrH7msk8CzXbpH8DamYNYDct3kpG+kcYddbFVvrM=; b=PfUAH92rt3WCXAeZ8dHbAVMFafckG+V00bFcskWSMYnN1lCOxMkcfbQ7JhW3LMnrEF ypQ3BNh9nvjeM/I3uwV0yhAtZspzfjKitBFISBYN26BkBc0jaUEWzZGcD22WzU8JsaTc wixNeGcLyBtvZ1e42khwnr1+gKTMuN8nw5j74= Received: by 10.227.199.200 with SMTP id et8mr7178725wbb.13.1321098940637; Sat, 12 Nov 2011 03:55:40 -0800 (PST) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by mx.google.com with ESMTPS id e13sm10431090wbh.17.2011.11.12.03.55.39 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Nov 2011 03:55:39 -0800 (PST) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files)? Date: Sat, 12 Nov 2011 11:55:19 +0000 User-Agent: KMail/1.13.7 (Linux/3.0.6-gentoo; KDE/4.6.5; x86_64; ; ) References: <4EBE38F3.2000005@binarywings.net> In-Reply-To: <4EBE38F3.2000005@binarywings.net> 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: multipart/signed; boundary="nextPart8698069.VHPGfhAzLK"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <201111121155.41045.michaelkintzios@gmail.com> X-Archives-Salt: 86d0a3a8-bb19-4fe7-9ee7-100d5b55abe5 X-Archives-Hash: de462d3e3c4d79e6b11cbbf9ee60e786 --nextPart8698069.VHPGfhAzLK Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Saturday 12 Nov 2011 09:14:27 Florian Philipp wrote: > Am 12.11.2011 10:01, schrieb Pandu Poluan: > > On Sat, Nov 12, 2011 at 15:46, Nilesh Govindarajan =20 wrote: > >> On Sat 12 Nov 2011 01:54:10 PM IST, Pandu Poluan wrote: > >>> What is the *LIGHTEST* web server package you know for gentoo? > >>>=20 > >>> I just want to serve the distfiles, so no CGI / PHP / > >>> whathaveyouscripting support is needed. > >>>=20 > >>> Preferably, with logging so I can see which packages I missed, but not > >>> necessary. > >>>=20 > >>> Rgds, > >>=20 > >> nginx. > >> You can disable fastcgi/etc using use flags. > >=20 > > What about www-servers/fnord ? > >=20 > > Its website[1] claims that its binaries are less than 20 kB[2] > >=20 > > [1] http://www.fefe.de/fnord/ > > [2] http://www.fefe.de/fnord/others.html > >=20 > > Rgds, >=20 > Talking about small: `/bin/busybox httpd` >=20 > I goes without saying that this is not meant to be web-facing. >=20 > Most things are explained in the --help output but the config file > format is only explained in a source code comment. See below: >=20 > httpd.conf has the following format: >=20 > H:/serverroot # define the server root. It will override -h > A:172.20. # Allow address from 172.20.0.0/16 > A:10.0.0.0/25 # Allow any address from 10.0.0.0-10.0.0.127 > A:10.0.0.0/255.255.255.128 # Allow any address that previous set > A:127.0.0.1 # Allow local loopback connections > D:* # Deny from other IP connections > E404:/path/e404.html # /path/e404.html is the 404 (not found) error page > I:index.html # Show index.html when a directory is requested >=20 > P:/url:[http://]hostname[:port]/new/path > # When /urlXXXXXX is requested, reverse proxy > # it to http://hostname[:port]/new/pathXXXXXX >=20 > /cgi-bin:foo:bar > # Require user foo, pwd bar on urls starting with /cgi-bin/ > /adm:admin:setup > # Require user admin, pwd setup on urls starting with /adm/ > adm:toor:PaSsWd # or user toor, pwd PaSsWd on urls starting with /adm/ > .au:audio/basic # additional mime type for audio.au files > *.php:/path/php # run xxx.php through an interpreter >=20 > A/D may be as a/d or allow/deny - only first char matters. > Deny/Allow IP logic: > - Default is to allow all (Allow all (A:*) is a no-op). > - Deny rules take precedence over allow rules. > - "Deny all" rule (D:*) is applied last. I've been using boa just for this purpose for years: * www-servers/boa Available versions: =20 ~ 0.94.14_rc21 "~x86 ~sparc ~mips ~ppc ~amd64" [doc] Homepage: http://www.boa.org/ Description: A very small and very fast http daemon. It can be easily locked down for internet facing roles. I've also used thttpd (you can throttle its bandwidth if that's important i= n=20 your network), but it's probably more than required for this purpose: * www-servers/thttpd Available versions: =20 2.25b-r7 "amd64 ~hppa ~mips ppc sparc x86 ~x86-fbsd" [static] ~ 2.25b-r8 "~amd64 ~hppa ~mips ~ppc ~sparc ~x86 ~x86-fbsd"=20 [static] Homepage: http://www.acme.com/software/thttpd/ Description: Small and fast multiplexing webserver. =2D-=20 Regards, Mick --nextPart8698069.VHPGfhAzLK Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEABECAAYFAk6+XrwACgkQVTDTR3kpaLa40QCdEGUlqLMJl3Y5Bqilsa8ydEdB g5cAoPkHbZk4zNpJ75oXII9KLTIlH1Pq =hQsw -----END PGP SIGNATURE----- --nextPart8698069.VHPGfhAzLK--