пн, 29 мая 2023 г. в 12:14, Tom Reed <t...@dkinbox.com>: > 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.
How you plan run your app? Important questions for choice: Do your app use .htaccess/.htpasswd and .ht* must be reconfigured in runtime by user? Do your app use cgi or mod_php and can't be run as fastcgi/fpm/wsgi? If any answer 'yes' or 'don't know' - apache. Or better nginx as reverse proxy in front of apache as application server. nginx may replace apache, but their configs have no user access and another format + it's not an application server, their capabilities - to proxy requests to another app and serve static files. -- Stanislav