Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
devs30817yIt depends. For production, yes. But if it’s for personal use and you know apache, no; you probably won’t feel a difference
-
Kimmax111067yWhatever fits you. It most likely does not matter if you don't serve thousands of requests per second. If you do you should already know
-
I mostly use NginX on my hosts and apache on my vps's which run on those hosts! But I personally prefer NginX :)
-
olback109817yDefault Apache configuration is vulnerable to Slow Loris attacks, Ngingx does not have this problem.
-
GieltjE18197y@olback chosing a software on one known easily fixable problem is a surefire path to regret.
-
This relies on what you want to do.
Normally I use them under these circumstances:
Average servers, developing: Apache
High performance servers: Nginx
Integrated/small machines like Raspberry or tiny vservers: Lighttpd -
Nginx is much faster and does not need such powerful HW, so I would use it for productikn, but I find Apache more user friendly with its .htaccess which I like way more than writing complex configs for Nginx, so I use Apache as my testing server.
-
Thanks all for sharing your opinions.
I think I'll stick with Apache for now, 'cause everything I develop is still very lightweighted! -
It depends on your use case.
Apache is great but doesn't fair under heavy loads since it opens a new thread for every connection. -
n4zim3367yI use nginx most of all because I prefer its configuration files, more readable than Apache ones.
-
Apache is a swiss army knife. Fully loaded.
nginx is a gun. Does a single job, but do it best. -
They’re both great, but if i can choose between JSON and XML, i’ll pick JSON...everything apache just has that legacy vibe π
-
@filthyranter I always see the "Apache is easier" argument, but once I switched to Nginx I've had fewer headscratching moments. Nginx conf reads like a children's novel to me in comparison.
But my answer would be: Don't bother, you're a dev so go write code, hire a sysadmin π
Still useful to grasp the basics though. -
GieltjE18197yOnce you tune apache a bit (mpm event with php-fpm) it's actually quite performant. Though that isn't necesarily something for everyone.
With such a setup the difference between nginx (with php) and apache 2.4 isn't that great at all. -
@Ashkin @linuxxx god, that way of writing NGINX triggered me... why the big N and X? Their product name is NGINX. So either write it correctly or don’t bother with capitalisation
trigger.end(); -
@rc5-asdf I think it can be useful to run your local dev environment in a way that closely resembles production. That way you can prevent embarassing "but it worked on my machine"-moments.
-
Root825997y@ChainsawBaby iirc that's how their documentation spells it. I rather agree though π
-
@Ashkin I’ve only seen nginx and NGINX in their documentation. And when I speak with the NGINX team they always write NGINX
Related Rants
Quick question:
Apache or Nginx?
Currenly I'm using Apache in Ubuntu server running in Virtual box but I was wondering if it's worth switching to Nginx :)
question
nginx
switch
apache