Tom Reed wrote: 
> Though the question is not directly related to debian.
> But since most of you are sysadmin expects, may I ask that for running a
> simple web service, should I choose nginx or apache, and why? The service
> is combined by some php and python scripts, with redis as backend DB.


For the work described, either is a good choice.

If you have a project which relies on some particular feature of
one or the other, that would be a determinant.

nginx has better config syntax in general, but it's not an
overwhelming advantage.

apache has .htaccess controls, which are either tremendously
useful (mostly for multi-user systems) or a significant pain
(when those users are asking for help).

redis is not a great choice for a storage DB; it will eventually
lose data. It's a great choice for a caching layer or for a very
well-debugged system with a good UPS that can inform the kernel
that it's time to shutdown to avoid power loss.

-dsr-

Reply via email to