Free, independent guides since 2010

Hosting & domains

Apache, Nginx and LiteSpeed: web server software explained

What web server software does, how Apache, Nginx, LiteSpeed and Caddy differ, what it means for .htaccess, speed and configuration, and why it matters when choosing hosting.

<guide section="Hosting & domains" type="article" read="1 min"/>

Every website runs on web server software: the program that receives a browser’s request and sends back the right file. You rarely see it, but it explains why some redirect instructions work on one host and not on another. Background: what is web hosting.

The main web servers

ServerCharacteristicsConfiguration
ApacheThe classic, very flexible, huge module ecosystemCentral config plus per-folder .htaccess files
NginxFast and efficient, often used as reverse proxyCentral config only
LiteSpeedCommercial, compatible with Apache rules, strong cachingReads .htaccess
CaddyModern, automatic HTTPS by defaultSimple central config
IISMicrosoft’s web server for Windows hostingweb.config files

See also Linux versus Windows hosting.

Why it matters to you

  • Redirects: .htaccess rules work on Apache and LiteSpeed, not on Nginx. Static hosts and CDNs use their own redirect files. See .htaccess basics.
  • Caching: some hosts include server-level caching (common with LiteSpeed and managed hosting).
  • Performance: HTTP/2 and HTTP/3 support, compression with Brotli or gzip.

How to find out what your host uses

Look at the response headers in your browser’s developer tools (Network tab, click the page, look for a Server header), or ask your host. Many hide the exact software for security reasons.

Frequently asked questions

Does Nginx support .htaccess files?

No. Nginx is configured centrally, so redirects and rules go into the server configuration instead. Some hosts run Nginx in front of Apache to keep .htaccess support.

Which web server is fastest?

For static files, the differences are small for typical small sites. Caching, a CDN and lightweight pages matter much more than the server software.