stackstash

Apache HTTP Server vs Nginx

Apache HTTP Server and Nginx are free.

The open-source web server "chef" that takes requests from a browser and serves up the website's files.

Try it

Pros of Apache HTTP Server

  • Available on almost every VPS and shared host.

  • The config is plain text you can search.

  • No account with a cloud vendor required.

Cons of Apache HTTP Server

  • You patch and configure the server yourself.

  • A default install is easy to leave too open.

  • Not always as reliable as

    Nginx logo: Open-source web server, reverse proxy, and load balancer used in front of most production apps.
    Nginx.

Nginx logo: Open-source web server, reverse proxy, and load balancer used in front of most production apps.
Nginx logo: Open-source web server, reverse proxy, and load balancer used in front of most production apps.

Nginx

Free

Open-source web server, reverse proxy, and load balancer used in front of most production apps.

Try it

Pros of Nginx

  • Free and battle-tested open source

  • Excellent reverse proxy performance

  • Huge community and examples (very popular)

  • Pairs well with Docker and VPS hosts

  • Can serve static sites on its own

Cons of Nginx

  • Config files take practice

  • You manage the server yourself

  • Advanced features need Plus or extras

  • Not a full cloud host by itself