13
Linux
7y

Apache > nginx

Comments
  • 11
    Absolutely no chance.
    Why would you even say such a thing?
  • 0
    @Ashkin
    Nginx is actually not as superior as many claims, ONLY when it comes to static websites with millions of visitors. That when Nginx shines.
  • 3
    The vhost in apache2 is MUCH smaller and simple, also Nginx does not support htaccess (BOOOOOH!!!)
  • 1
    @Linux configuring Nginx is so much nicer than Apache. It also integrates better with thin clients like unicorn/passenger, etc.
  • 0
    @Linux you don't need .htaccess if your framework has sensible routing. Then again, php does not.
  • 2
    Being a quite big webhost, nginx can not solve our need. Apache does that flawless. And with php-fpm the performance difference is not noticable.

    Apache is also better serving dynamic files while nginx does a better job with static files.
  • 0
    MongoDB
  • 3
    If by dynamic you only mean PHP then youre right; but if by dynamic you also mean reverse proxy for a Node.js, Go, Python or C# app you are absolutely, positively wrong.
  • 3
    And to prove a point by using your arguments; try looking at the download of your applications and consider the amount of static content actually served. Styles, images, JavaScript, in many cases these are 90% of the total transfer; static files, where nginx shines!
  • 0
    Can't do streaming with apache, can't use mod_perl request handlers with nginx, so I use both :)
  • 1
    @nbamaral
    Using then toghether works great! You have the Speed of nginx and the flexibility of Apache

    What kind of streaming btw?
  • 1
    nginx < apache < Microsoft IIS Server < file://
  • 1
    I like Apache more but im Running my Webserver on a raspberry (not ideal but hey better than nothing) and Apache just eats so much ram. So i am forced to use nginx
  • 1
  • 1
    @Sarcaxxo
    Never tried caddy, it looks interesting and I was about to try it for the http2 support but Apache released the module the same Day ;)
  • 0
    @FetzenNET
    Do you run PHP as an Apache module (if you use PHP)
  • 0
    I am using asp.net core on Debian.
    @Linux
  • 0
    @FetzenNET
    Oh, then I understand!
    What kind of stuff are you running?
  • 0
    I am Running nginx, mysql, asp.net core, Netdata and a Discord bot on it. All of those dont get to much traffic so its not too much of a Problem for the pi. On asp.core i run a basic api a and a almost static Website with vue and like i said on debian
  • 1
    @FetzenNET
    Nice :) the first time someone actually uses asp.net core on Linux that I have heard of! I do like it
  • 2
    @Linux thats pretty sad. Core really changed alot of things people dont liked. Im not trying to Sound like a fanboy but i really enjoy working with it..
  • 0
    @FetzenNET
    I want to see more stuff and usecases for asp.net on the pi
  • 1
    Apache has slow loris if i remember correctly, wouldn't run it on my server
  • 1
    @IwraStudios
    Fixed long ago
  • 0
    php -S localhost:80
    on production server of course. 😈
  • 0
    @Linux couldn't find a source saying it was fixed but I'm sure you are right
  • 1
    @IwraStudios
    Actually, it seems like it still exist. So you are correct. But apache can handle it better now and it can be resolved with mod_qos.

    Slowloris is almost never used anymore thou :)
  • 1
    We actually use both. Apache as backend webservers, with PHP-FPM. Nginx as a load balancer for dynamic content and Varnish as a caching proxy for static content.
  • 1
    @Linux
    Sometimes I have to publish live events (conferences or classes) through OBS (open source broadcast system, it can manage multiple audio/video sources).
    nginx stream module works great for that (I use dash, ffmpeg does all the transcoding).
    Sometimes I proxy nginx through apache, sometimes it's the other way around, to make everything seamless in SSL.
Add Comment