From owner-freebsd-questions@FreeBSD.ORG Mon Nov 3 20:00:17 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61544106564A for ; Mon, 3 Nov 2008 20:00:17 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id D75668FC19 for ; Mon, 3 Nov 2008 20:00:16 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id mA3K01rq074167; Mon, 3 Nov 2008 20:00:09 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.7.2 smtp.infracaninophile.co.uk mA3K01rq074167 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1225742410; bh=cKqRtfRyZ7larQ 7sGOwL0ueB96YMR64Hi/g0ESaZXJ4=; h=Message-ID:Date:From:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Cc:Content-Type: Date:From:In-Reply-To:Message-ID:Mime-Version:References:To; z=Mes sage-ID:=20<490F583C.6040806@infracaninophile.co.uk>|Date:=20Mon,=2 003=20Nov=202008=2019:59:56=20+0000|From:=20Matthew=20Seaman=20|Organization:=20Infracaninophile|User -Agent:=20Thunderbird=202.0.0.17=20(X11/20080929)|MIME-Version:=201 .0|To:=20=3D?ISO-8859-1?Q?Francis_Dub=3DE9?=3D=20|CC:=20freebsd-questions@freebsd.org|Subject:=20Re:=20Imag es-only=20webserver,=20lighttpd=20vs=20NginX|References:=20<490F50F 2.5050706@optiksecurite.com>|In-Reply-To:=20<490F50F2.5050706@optik securite.com>|X-Enigmail-Version:=200.95.6|Content-Type:=20multipar t/signed=3B=20micalg=3Dpgp-sha256=3B=0D=0A=20protocol=3D"applicatio n/pgp-signature"=3B=0D=0A=20boundary=3D"------------enigFECEC8705C4 D1F281796E763"; b=czTuaspvWAf44PlYdMy+MKXHQModfnwx9xPTmOQiSLaioDj0/ BfzMVvhHsLSZPRDDnzBTkR+H59PL9cDyZ+0LwT7tZr9Pa7N98mVQoQXW0WzAbUPgsyr QsqqxdBSbjXfRCTJ9SSut0d2h55g+ZXcBmSuHVRCbi0rwL4RyxnbbHg= Message-ID: <490F583C.6040806@infracaninophile.co.uk> Date: Mon, 03 Nov 2008 19:59:56 +0000 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.17 (X11/20080929) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Francis_Dub=E9?= References: <490F50F2.5050706@optiksecurite.com> In-Reply-To: <490F50F2.5050706@optiksecurite.com> X-Enigmail-Version: 0.95.6 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigFECEC8705C4D1F281796E763" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (smtp.infracaninophile.co.uk [IPv6:::1]); Mon, 03 Nov 2008 20:00:10 +0000 (GMT) X-Virus-Scanned: ClamAV 0.94/8559/Mon Nov 3 16:41:26 2008 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: Images-only webserver, lighttpd vs NginX X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Nov 2008 20:00:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigFECEC8705C4D1F281796E763 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Francis Dub=E9 wrote: > As a part of the solution, I decided to build a jail with a light=20 > webserver dedicated to images requests, the biggest part of the request= s=20 > the server have to process. Most of the websites hosted on the server=20 > have approximately 200 small images with a size between 1k and 32k each= =2E=20 > I'm currently hesitating between NginX and lighttpd, which both seems t= o=20 > offer similar benchmarks for this job. The questions : >=20 > Is someone doing something similar to this with one of the two ? I've had very good results with nginx for doing this sort of thing. > Which one do you suggest and why ? I originally chose nginx because it did what I wanted and it didn't confl= ict with Apache (ie. by installinga binary called 'httpd') on the=20 same machine. However I wasn't aware of lighttpd at that point. By=20 the time I did find out about lighttpd, there was no compelling reason=20 to change from nginx. I think you'll find either is adequate to your needs. Unless you're trying to squeeze the absolute last drop of performance out of your=20 hardware, consider other things than raw speed. Do you find the=20 configuration files easy to understand and deal with? Can you strip=20 down the server to the absolute minimum necessary to serve your needs,=20 and if so which of the two is smaller? Which server name do you find=20 easier to type? > I've read about a memory leak in lighttpd, is anyone is having issues=20 > with this under FreeBSD ? Hmmmm... That would disqualify it from serious contention straight=20 away. But http://www.lighttpd.net/security/lighttpd_sa_2008_07.txt shows the memleak bug fixed in the latest version 1.4.20, which is in ports. Haven't had any stability problems ever with nginx. > Any ideas regarding our situation is appreciated, I think either of these packages will probably serve you well. If you really can't choose between them, then toss a coin. =20 Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW --------------enigFECEC8705C4D1F281796E763 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.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEAREIAAYFAkkPWEEACgkQ8Mjk52CukIxSsACfaVOOlAy2ZmEji15fGzaCmyl2 Mc0AnA8De923uWefuIWIdqpUyp6i75do =bA9/ -----END PGP SIGNATURE----- --------------enigFECEC8705C4D1F281796E763--