Apache HTTP Server is the world’s most used web server software. Developed and maintained by the Apache Software Foundation, it has powered the web since 1995 and remains a cornerstone of internet infrastructure.
📑 Table of Contents
Key Features
- Modular Architecture: Extensive module system
- .htaccess: Per-directory configuration
- Virtual Hosts: Multiple sites on one server
- SSL/TLS: Built-in encryption support
- URL Rewriting: Powerful mod_rewrite module
Installation
Install Apache on Ubuntu:
sudo apt update
sudo apt install apache2
sudo systemctl enable apache2
sudo systemctl start apache2
Usage Examples
Virtual host configuration:
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example.com
<Directory /var/www/example.com>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Benefits
Apache offers unmatched flexibility through its module system and configuration options. Its maturity and extensive documentation make it reliable for hosting applications of any scale.
Was this article helpful?