# Apache HTTP Server

> An old, free web server. You add the parts you need.

**Field:** Infrastructure  
**Category:** Web Serving & Nginx  
**Also known as:** Apache, Apache Web Server, httpd, apache2

## Think of it like

It is like an old, trusted shop that has served the town for years. It can do almost anything you ask.

## Definition

The Apache HTTP Server is a free, open-source web server from the Apache Software Foundation. It has been around since the 1990s and still runs many sites. It is built from modules you switch on, so it can do a great deal. Rules for one folder can sit in a file called .htaccess inside it. On Ubuntu, its main settings file is apache2.conf.

## Example

A shared host runs Apache for hundreds of small sites. Each customer sets their own redirects in a .htaccess file. The main settings stay the same.

## Why it matters

Many hosts and older guides still use it. Knowing it helps when you move a site from one server to another.

## Common mistake

Searching for just Apache. That name covers a whole group with many projects. Search for Apache HTTP Server.

## Three principles

- **Modules.** Switch on only what you need.
- **.htaccess.** Rules for one folder.
- **Long history.** Running sites since the 1990s.

## Related terms

- [Web Server](https://learn.benibix.com/term/infrastructure/web-server)
- [Nginx](https://learn.benibix.com/term/infrastructure/nginx)
- [Virtual Host](https://learn.benibix.com/term/infrastructure/virtual-host)
- [Document Root](https://learn.benibix.com/term/infrastructure/document-root)
- [Apache License 2.0](https://learn.benibix.com/term/development/apache-license)

## Told apart from

- [Nginx vs Apache](https://learn.benibix.com/compare/nginx-vs-apache): People think Nginx and Apache are the same program under two names, and they are not. Both are free web servers. Nginx keeps its settings in a few main files and handles many visitors with little memory. Apache can also read a small settings file in each folder. That is handy on shared hosting, but slower.

![A browser on the left sends a request to a web server such as Nginx or Apache. The web server reads plain files straight from its document root folder, and passes every other request to an application server, which reads a database. Each request also adds one line to an access log file.](https://learn.benibix.com/diagrams/inf2-web-server.svg)

---

Source: https://learn.benibix.com/term/infrastructure/apache-http-server
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
