frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Why is Apache still popular even as Nginx has proven its mettle on performance?

6•pyeri•17h ago
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?

But when it comes to real world usage, many production instances I observe these days still deploy apache a lot. Even cpanel based web hosting (shared or dedicated instances) are more often apache based than nginx.

Is it due to some old habits and dependence on apache specific features like .htaccess support? Or is it the case that apache has actually caught up in the race with ngnix and the performance difference is quite negligible these days?

Comments

warmax356•17h ago
old habits, documentation and just lazy practices like using it out of the box, I personally used Apache, nginx and OLS and lately been leaning more and more on open-light-speed for the fact that it can handle more traffic on less resources
tell_me_whai•17h ago
I think a lot of people take a "If it ain't broke don't fix it" approach to these things. Breaking a reverse proxy can be catastrophic
blueflow•17h ago
If you are a company who does some non-IT thing, it makes sense to stick to the LAMP stack because it has the largest and most thorough knowledge bases online.
stefanos82•16h ago
The only logical explanation I can think of based on my personal experience is that shared hosting services offer Apache web server by default so they can host WordPress websites which by the way, based on w3techs.com, 43.1% of all websites are WordPress.

You may ask why Apache then? Well, because when a user modify some settings via dashboard, they change in .htaccess which does not expect a web server restart or super user permissions like you need with NGINX, for example.

Now you know why WordPress websites are getting hacked easier than other CMS-es...because they can apply changes in .htaccess on the fly, whereas with other web servers, you need root permissions, thus the extra layer of security.

perrygeo•15h ago
A recent contract job of mine used Apache because they had written a critical component of their application as an Apache module. 10 years ago. There isn't much incentive to change it.

When people ask these questions, do they think people are actively choosing to use the old technology? That's a huge misunderstanding. It's not an apache vs nginx decision. It's do nothing vs spend precious time on a side quest to upgrade. Opportunity cost is your answer.

And re: performance, keep in mind that very few applications are limited by the speed of their HTTP server. You first look at your application servers, networks, disks, databases. If your app is truly HTTP-bound, well you're probably not still using Apache! IOW the people who NEED to upgrade from apache for performance reason already have. For the rest, there is no incentive.

mbrock•15h ago
If you've already gotten used to one custom ad hoc confusing configuration language...
al_borland•14h ago
I still use Apache for some internal stuff I host. It works, has been running for over a decade, and no one has ever complained about the speed. I have no reason to invest time in changing it over.

Technology should solve business problems. If the move from Apache to nginx isn’t going to solve an actual problem, it becomes technology for technology’s sake.

In some cases, squeezing out a little extra performance does matter, but for most sites, I don’t think it’s that big of a deal.

Bender•13h ago
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?

This was certainly true long ago in Apache HTTPD 2.2. They completely rewrite APR and as of the 2.4 branch it was on par with Nginx.

Some use Apache for a tighter integration with some modules such as PHP resulting is a slightly better security stance with PHP. Nginx makes heavy use of fcgi wrappers and there are a number of foot-guns people create when making their own applications just as PHP itself has a number of foot-guns.

I use both NGinx and Apache depending on what I am deploying and often have HAProxy in front of it on many nodes unless I am just serving static content and then it does not really matter. There is no one correct answer. What people use will depend on what they are doing and also what they are comfortable with. The arguments I have seen about Apache vs Nginx are on par with browser war arguments, cell phone arguments, favorite color and so on. Both NGinx and Apache have their share of design flaws and I have been in long heated arguments with the lead developers of both. People should use what they have the most experience with and can feel reasonably confident that they have done proper due diligence regarding security before performance. This is all unrelated to CVE counts but rather sysadmin PEBKAC [0] issues.

[0] - https://www.urbandictionary.com/define.php?term=PEBKAC

ok1984•9h ago
We have always used apache as a reverse proxy and it has never been a problem from a performance point of view, performance issues has always been related to the database, business logic, network, disks and so on.

Using nginx might enhance a bit performance, but compared to other modules of the overall environment such performance gains are neglectable and unnoticeable for a normal user.

In our latest product I wanted to switch to nginx but I was surprised that for windows it is only in BETA version, and since our application MUST be deployable to both Windows and Linux environments we preferred a consistent software stack hence we stick on Apache.

The plan is to reconsider nginx once it officially supports windows, since no serious customer would accept a beta version for a production environment.

ipaddr•1h ago
Simpler, better module ecosystem and better rewrites.

FPM workers get stuck, default settings need to be changed, can’t handle long-running connections well, ends up using a lot of ram. More log places to check when things go wrong.

You end up with more issues.

Ask HN: Where to Migrate as an IT Support/DevOps Engineer for Work?

2•shivajikobardan•1h ago•0 comments

Ask HN: What Are You Working On? (Nov 2025)

457•david927•6d ago•1343 comments

What is the most beautiful / highest quality code you've seen (or written)?

27•gooob•1d ago•14 comments

Ask HN: How to learn concurrency?

40•shivajikobardan•2d ago•18 comments

Why is Apache still popular even as Nginx has proven its mettle on performance?

6•pyeri•17h ago•10 comments

Ask HN: Is Computer Science still a good choice?

19•speedylight•1d ago•30 comments

Ask HN: Anyone else hate the GitHub Android app

3•raffraffraff•20h ago•4 comments

Ask HN: How does one stay motivated to grind through LeetCode?

85•blutoot•3d ago•104 comments

Ask HN: How would you set up a child’s first Linux computer?

226•evolve2k•6d ago•298 comments

Ask HN: Are Agents Just Hype?

6•spacemnstr42069•1d ago•8 comments

Ask HN: Could Microsoft replace its CEO with ChatGPT?

24•nothrowaways•3d ago•38 comments

Ask HN: How common is banning Docker?

9•martypitt•1d ago•12 comments

Ask HN: Senior people, how did your career evolve?

83•Seb-C•4d ago•51 comments

Why isn't everyone using Cerebras?

3•tghack•1d ago•1 comments

Tell HN: X is opening any tweet link in a webview whether you press it or not

647•stillatit•1w ago•519 comments

Ask HN: Looking for a good course to learn proof assistant Lean 4

5•rabarbers•1d ago•3 comments

Ask HN: Interviewing currently (or recently)? how have interviews changed?

4•akudha•1d ago•1 comments

Ask HN: Who is hiring? (November 2025)

400•whoishiring•1w ago•580 comments

Ask HN: My family business runs on a 1993-era text-based-UI (TUI). Anybody else?

316•urnicus•1w ago•308 comments

Ask HN: How do you handle logging and evaluation when training ML models?

3•calepayson•1d ago•2 comments

The Lotus program analysis framework

2•cutelimination•2d ago•0 comments

Ask HN: How do you get over the fear of sharing code?

75•sodokuwizard•6d ago•91 comments

Ask HN: What's your solution to tech addiction?

5•asim•1d ago•9 comments

Ask HN: How Do Developers Stay Up to Date Without Being on Twitter All Day?

4•jerawaj740•8h ago•10 comments

You've reached the end!