Apache vs Nginx?

roggy

Member
Registered
Joined
Jan 24, 2015
Messages
57
Points
0
I have a series of questions and wanted some one help me the best answers

What is Apache or Nginx? for running websites which is better?
Windows and Linux, what is the advantage of each one and which one should I install on which web server? why?
 

RDO Servers

Well-known member
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
Hey Roggy,

Apache and Nginx are both web server programs. The software that is installed on the servers, and actually processes/renders website files when a user visits your site.
Apache has long been the standard, as it is typically pre-installed with Linux. However it is NOT the fastest. Nginx and Litespeed are both much better options.

Wither you use Linux or Windows, depends on what languages your website use.
If your website use asp.net, then you will need Windows hosting, as it will not run well on Linux.
php and pretty much every other language will run on Windows or Linux, but it is usually better to run php on Linux. Some hosts charge more for Windows hosting, some do not. So be sure to check the price differences as well.

Hope this helps!
 

anhbloginc

Active member
Registered
Joined
Jun 24, 2015
Messages
68
Points
0
Hi RDO Servers,

I have a question want to ask you about VPS. This is just a personal question. It's not related to any of services you are providing right now.

A few days ago, I read a post on shoutmeloud.com about Cloudways.com. They are providing cloud hosting with optimized application, including Wordpress. Their service are based on Digital Ocean, Vultr, Amazon and Google Cloud Computing.

They are offering trial periods for customers who want to try their service. I also applied a free trial slot to try and found that they are installed both Apache and Nginx on the VPS.

So the question is what's the purpose in this case? As I know, they are both web server and run one of them are fine. Why they need both?

Hey Roggy,

Apache and Nginx are both web server programs. The software that is installed on the servers, and actually processes/renders website files when a user visits your site.
Apache has long been the standard, as it is typically pre-installed with Linux. However it is NOT the fastest. Nginx and Litespeed are both much better options.

Wither you use Linux or Windows, depends on what languages your website use.
If your website use asp.net, then you will need Windows hosting, as it will not run well on Linux.
php and pretty much every other language will run on Windows or Linux, but it is usually better to run php on Linux. Some hosts charge more for Windows hosting, some do not. So be sure to check the price differences as well.

Hope this helps!
 

RDO Servers

Well-known member
Registered
Joined
Apr 3, 2015
Messages
1,027
Points
83
As far as I know they may be using both Apache and Nginx together to simplify the operations.

Both web servers can handle static as well as dynamic files, but Nginx can handle static files precisely and can serve it quickly and directly to the client, but if any dynamic file request like PHP file, then Nginx will proxy the request to Apache, which can then process the results and return the rendered page. Nginx can then pass the content back to the client.

Nginx here act as a reverse proxy this will allow Nginx to handle all requests from clients. This takes advantage of Nginx's fast processing speed and ability to handle large numbers of connections concurrently. It will handle all requests it can and pass on the ones that it has no native ability to serve to Apache so by dividing the work between web servers, processing gets much better in this manner.
 
Older Threads
Replies
26
Views
10,325
Replies
14
Views
4,344
Replies
4
Views
2,266
Replies
2
Views
3,086
Replies
6
Views
2,208
Newer Threads
Replies
4
Views
2,674
Replies
5
Views
3,087
Replies
12
Views
5,044
Similar Threads

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