Why use Apache over NGINX/Cherokee/Lighttpd?
Asked Answered
A

3

12

Apache has been the de facto standard web server for over a decade, but recent years have brought us web servers that consume less RAM and handle many more requests per second using fewer threads and asynchronous i/o. In my opinion, I also find the configuration of these servers to be more straightforward and minimal.

Why do people use Apache when asynchronous servers are so much more lightweight? Is there any clear benefit?

Among answered 22/1, 2010 at 5:11 Comment(0)
M
12

Apache's .htaccess provides flexible configuration. This allows users on a shared host to customize certain settings of an apache without having to alter the core apache configs.

It is the standard server bundled in typical LAMP setups, although, many services use other web servers for in conjunction (like static files, video streaming, etc.).

Since Apache is popular, it's easy to find a solution to any problems.

Other than that, other solutions would probably be better.

Mcgehee answered 22/1, 2010 at 5:22 Comment(0)
P
17

Ubiquity, "good enough", and familiarity.

Pietje answered 22/1, 2010 at 5:14 Comment(1)
It cannot be overstated the benefits of wide usage.Polka
M
12

Apache's .htaccess provides flexible configuration. This allows users on a shared host to customize certain settings of an apache without having to alter the core apache configs.

It is the standard server bundled in typical LAMP setups, although, many services use other web servers for in conjunction (like static files, video streaming, etc.).

Since Apache is popular, it's easy to find a solution to any problems.

Other than that, other solutions would probably be better.

Mcgehee answered 22/1, 2010 at 5:22 Comment(0)
G
1

Apache IS asynchronous if you want it to be with the Event MPM. Unlike Nginx and Cherokee, etc., it is not the default.

Apache's made some important moves in 2.4 so it can be more competitive — esp. as it pertains to serving static requests using the Event MPM. Various benchmarks don't speak well of this, but:

It's very difficult to ascertain how much slower Apache is in 2.4 because Apache's out of the 'box' configuration is detrimental to performance and legacy holds it back in some respects. For example, .htaccess requires stat/reading a multitude of files on every request, which may include many rules and regexes. Nginx doesn't have this problem, nor does Cherokee. Litespeed has .htaccess support in Apache's style, but only if you pay for it. Most benchmarks don't turn off features like those.

Most of the benchmarks are also ridiculous in that they're run locally and over a GbE network or similar. A real web server has to cope well with various speeds, including 3G phones. It could be that Apache's performance is better in the real world.

I doubt it.

Nginx is still faster, and I might choose it, but Apache isn't asleep.

Geometrize answered 19/4, 2014 at 12:32 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.