Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Nov 2008 19:59:56 +0000
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        =?ISO-8859-1?Q?Francis_Dub=E9?= <freebsd@optiksecurite.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Images-only webserver, lighttpd vs NginX
Message-ID:  <490F583C.6040806@infracaninophile.co.uk>
In-Reply-To: <490F50F2.5050706@optiksecurite.com>
References:  <490F50F2.5050706@optiksecurite.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?490F583C.6040806>