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 1RP9ge-0001Ws-FO for garchives@archives.gentoo.org; Sat, 12 Nov 2011 09:15:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CCD8B21C0F3; Sat, 12 Nov 2011 09:15:29 +0000 (UTC) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by pigeon.gentoo.org (Postfix) with ESMTP id 1BECA21C051 for ; Sat, 12 Nov 2011 09:14:38 +0000 (UTC) Received: from compute6.internal (compute6.nyi.mail.srv.osa [10.202.2.46]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id CC7F02088A for ; Sat, 12 Nov 2011 04:14:37 -0500 (EST) Received: from frontend2.nyi.mail.srv.osa ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 12 Nov 2011 04:14:37 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=AhTvCIGUPIH8rDtBHwDxCFtg 1FY=; b=ieeVhbeKmI7tjHFIdQsEvd9LJgeDkbHN23IpUcGGNIyICc6eFAn2vTDW DVq75I5bVaPHKudVIq2SapC5WMgz/IHGvD5KfakoByVSNI78ie1cta5nE0GUGJTy unezSVCTHGzFlVJqieiehUE+a0YxUXineot7jFj2+VcPn7seXZY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=AhTv CIGUPIH8rDtBHwDxCFtg1FY=; b=FnYkF4N3uh5z2QX28/hdJVs2zVlAS0J64o1F 909gNiW4nGTE/5EFJmjUlEPhTwcOIC1NDM95op8JdcLiHgDaz2EGTSINBsylvJLx lP6z4EOu6gOPEVeugZzyCIAdrPAgoqNItt6MsbZPGQasWVG9OZdKsjC2eE/NxPkx MUe49Ts= X-Sasl-enc: lLZmsVZxWTKJbZpBoRtqq/P8bHYqZKuZ7DgepPjal+7j 1321089276 Received: from [192.168.5.18] (serv.binarywings.net [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPSA id 9BD1D48248F for ; Sat, 12 Nov 2011 04:14:36 -0500 (EST) Message-ID: <4EBE38F3.2000005@binarywings.net> Date: Sat, 12 Nov 2011 10:14:27 +0100 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20111031 Thunderbird/7.0.1 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 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] The LIGHTEST web server (just for serving files) ? References: <4EBE326C.5030609@nileshgr.com> In-Reply-To: X-Enigmail-Version: 1.4a1pre Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2F10FE0F46EFB27BF8F65ACE" X-Archives-Salt: a451657b-e8d1-419a-9471-d9c5de6c899d X-Archives-Hash: 613f8f2c1e3f7e1904472cfeb986e325 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2F10FE0F46EFB27BF8F65ACE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 12.11.2011 10:01, schrieb Pandu Poluan: > On Sat, Nov 12, 2011 at 15:46, Nilesh Govindarajan 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? >>> >>> I just want to serve the distfiles, so no CGI / PHP / >>> whathaveyouscripting support is needed. >>> >>> Preferably, with logging so I can see which packages I missed, but no= t >>> necessary. >>> >>> Rgds, >> >> 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, Talking about small: `/bin/busybox httpd` I goes without saying that this is not meant to be web-facing. Most things are explained in the --help output but the config file format is only explained in a source code comment. See below: httpd.conf has the following format: 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 P:/url:[http://]hostname[:port]/new/path # When /urlXXXXXX is requested, reverse proxy # it to http://hostname[:port]/new/pathXXXXXX /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/ =2Eau:audio/basic # additional mime type for audio.au files *.php:/path/php # run xxx.php through an interpreter 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. Regards, Florian Philipp --------------enig2F10FE0F46EFB27BF8F65ACE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6+OPkACgkQqs4uOUlOuU9T1wCfdVoAzwhryOyUmTfP/RWOA9/q 0moAn3vewWySnUWf2Uli8ZiDwfOyDi8c =4hPy -----END PGP SIGNATURE----- --------------enig2F10FE0F46EFB27BF8F65ACE--