Skip to main content
Apache VS Nginx

Apache VS Nginx Feature Comparison And More

Apache vs Nginx are both free http servers

 

Apache vs nginx Has millions of feature like MS WORD and windows server but most people need the six features which there are included but the other features make apache slow, Nginx on the other hand has only those six features and so it make it faster than apache and is good for people who need a fast http server. But both of them are secure

Comparing Main Features Apache vs Nginx

CGI =CGI Means Common gateway interface. Apache Has It But unfortunately nginx does not have this features but if you needing php don’t worry you do not need CGI Because Nginx supports Fast CGI and so php will work .

Fast-CGI= Both apache and Nginx support Fast CGI

Here is a sample of htaccess and nginx config code

Server Side Includes (SSI)(It Is (mostly) used to include other files/contents) = Apache And Nginx Both Support This

Dont miss Check If My iPhone UDID Has Been Compromised

URL Rewriting = Both Apache vs Nginx support This.

SSL(Secure Socket Layer) and TLS (Transport Layer Security) Apache And Nginx Support SSL Has well has TLS.

FLV streaming = Apache And Nginx both have this feature.

Load Balancing = Lucky Both Http servse=rs have this feature apache and nginx

SCGI ( Simple Common Gateway Interface) = Supported For Both Apache And Nginx

Basic And Digest Access Authentication = Both Basic And Digest Access Are supported On Both Apache And Nginx

IPv6 (Internet Protocol Version 6) = Apache vs Nginx both support internet protocol Version 6

Htaccess = Apache does support htaccess but unfortunately nginx does not support htaccess. But luckey nginx has something called nginx config and another excellent thing is can can use htaccess file and convert to nginx using some online converters

Htaccess Sample Comparison to Nginx Config

HTACCESS

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^ index.php [L]

And When Converted to Nginx config

# nginx configuration location = /favicon.ico { } location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php break; } }

Here Are Some free Online Converts 

http://winginx.com/htaccess

http://www.anilcetin.com/

Apache Info

License: Apache License 2.0

Programed In: C

Release Date: – 1995

Nginx Info

License: 2-clause BSD  = (“Simplified BSD License” or “FreeBSD License”)

Release Date: 6 August 2002

Programed in: C

Percentage Of the Web Run By Apache Nginx (May 2013)

Apache: %53.42

Nginx:     %15.52

Total:       %68.94

Apache And Nginx Supported Operating Systems

Linux                         Nginx             Apache

OSX                               Yes                  Yes

Windows                     Yes                  Yes

BSD                               Yes                  Yes

Solaris                          Yes                  Yes

EComStation             No                   Yes

OpenVMS                    No                   Yes

IBM i                              No                  Yes

AIX                                Yes                  Yes

Z/OX                             No                   Yes

HP-UX                        Yes                   Yes

So there it is a comparison of Nginx And Apache

Leave a Reply

Your email address will not be published. Required fields are marked *