Why Nginx is faster and better than Apache?

Life Sayings

Member
Registered
Joined
Nov 9, 2013
Messages
59
Points
8
I want to know why Nginx web server is faster and better than Apache? does any one explain me?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
Nginx was designed to handle a lot of traffic with a low resources usage. Apache is older than Nginx, and there are more mods available with Apache (for example apache and php can be installed automatically, when you have to configure Nginx with php manually). But Nginx is in most of case faster than Apache and require less resources. It's also a very good reverse-proxy with a full caching solution.
To give you a quick example of Nginx performance, Apache have to read a .htaccess file before displaying the content to your visitors, for each folder it will read a .htaccess file, when you can set rules globally with Nginx and it will not have to check a file each time.
 

SolaDrive

Active member
Hosting Provider
Registered
Joined
Apr 11, 2017
Messages
72
Points
8
The one of the main reasons is that nginx as a webserver caches all static content which can greatly reduce the amount of hits and load on a server.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
David Beroff
I really like nginx as what you are talking about it or other people are giving it good feedback but i feel it is hard to configure like rewrite rules or somethings else. In Apache I don't need to care these works because they are automatic and already setup on the web server.
 

HostBastic

Well-known member
Hosting Provider
Registered
Joined
Nov 17, 2016
Messages
320
Points
28
Its not faster nor better than apache, they are both different web servers, ment for different purposes. A finely tweaked apache can be fast, it will load almost as fast as Litespeed atleast from the end user side. A combination of Nginx and Apache is quite rock solid when it comes down to performance.
 

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,488
Points
63
Its not faster nor better than apache, they are both different web servers, ment for different purposes.
I don't understand, if it is not better then why everyone said Nginx is better than Apache? and recommended using it.

A finely tweaked apache can be fast, it will load almost as fast as Litespeed atleast from the end user side. A combination of Nginx and Apache is quite rock solid when it comes down to performance.
What is tweak to make apache faster? Litespeed is a paid software and I don't think i can own it for websites unless i am a provider.
 

Mahfuz

Member
Registered
Joined
Jan 27, 2017
Messages
47
Points
0
Nginx is better than Apache because Nginx doesn't have extra not necessary modules like Apache have & Nginx's structure is designed to handle more concurrent connection than apache.
 

qbeststar

Well-known member
Hosting Provider
Registered
Joined
May 6, 2017
Messages
120
Points
18
Apache start in 1995 , nginx in 2002 it's two different program , and they can be used together for optimized server, apache on 8080 port and nginx on 80 port, nginx can stop small ddos and then send request to apache and apache will start work with php.
 

tlchosting

New member
Registered
Joined
May 26, 2017
Messages
3
Points
0
I would just invest in lightspeed or cloudlinux they are in the top two for us.
 

Denis // trabia

Member
Hosting Provider
Registered
Joined
May 29, 2017
Messages
50
Points
6
Nginx is much better if your website gets ddosed, with Apache even a small attack is enough to put it down, one doesn't even need much traffic 10-20 Mbps is often enough just need to send certain type of requests. Because of that even anti-ddos solutions cannot protect it because they usually don't filter traffic so aggressively as to not make too many false positives. Nginx is really helpful in such situations, coupled with a good ddos protection will ensure your website runs all the time.
 

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top